/* ---------- Base Reset ---------- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Segoe UI", sans-serif;
background: #f8f8f8;
color: #333;
}
/* ---------- Button to Open Modal ---------- */
.center-btn {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.social svg {
width: 24px;
height: 24px;
}
.close-btn {
z-index: 2;
background: #fff;
border-radius: 50%;
width: 32px;
height: 32px;
text-align: center;
line-height: 32px;
font-size: 1.6rem;
font-weight: bold;
cursor: pointer;
}
.open-modal-btn {
background: #e60023;
color: #fff;
border: none;
padding: 12px 22px;
border-radius: 6px;
cursor: pointer;
font-size: 1rem;
margin: 30px;
transition: background 0.3s ease;
}
.open-modal-btn:hover {
background: #cc001f;
}
/* ---------- Modal Overlay ---------- */
.modal-container {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.55);
display: none;
justify-content: center;
align-items: center;
z-index: 1000;
}
/* ---------- Modal Box ---------- */
.modal {
background: #fff;
border-radius: 12px;
overflow: hidden;
width: 95%;
max-width: 400px;
box-shadow: 0 8px 30px rgba(0,0,0,0.2);
animation: bounceIn 0.5s ease forwards;
position: relative;
}
/* Close Button */
.close-btn {
position: absolute;
right: 14px;
top: 12px;
font-size: 1.8rem;
color: #888;
cursor: pointer;
transition: color 0.3s ease;
}
.close-btn:hover {
color: #000;
}
/* ---------- Forms Wrapper ---------- */
.forms-wrapper {
display: flex;
width: 200%;
transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.form-container {
width: 50%;
padding: 40px 30px;
text-align: center;
}
.form-container h2 {
color: #e60023;
margin-bottom: 6px;
}
.form-container p {
color: #666;
margin-bottom: 20px;
font-size: 0.9rem;
}
.form-container form {
display: flex;
flex-direction: column;
gap: 14px;
}
.form-container input {
padding: 12px;
border-radius: 6px;
border: 1px solid #ddd;
outline: none;
font-size: 0.95rem;
transition: border 0.3s ease;
}
.form-container input:focus {
border-color: #e60023;
}
/* ---------- Primary Button ---------- */
.btn-primary {
background: #e60023;
color: white;
padding: 12px;
font-size: 1rem;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
background: #cc001f;
transform: translateY(-2px);
}
/* ---------- Social Login Buttons ---------- */
.social-login {
display: flex;
justify-content: center;
gap: 12px;
margin: 20px 0;
}
.social {
width: 42px;
height: 42px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: transform 0.3s ease;
}
.social svg {
width: 20px;
height: 20px;
}
.social:hover {
transform: scale(1.1);
}
.google { background: #db4437; }
.facebook { background: #3b5998; }
.linkedin { background: #0077b5; }
/* ---------- Tooltip ---------- */
.tooltip {
position: relative;
display: inline-block;
}
.tooltiptext {
visibility: hidden;
background: #333;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 6px 10px;
position: absolute;
z-index: 1;
bottom: 130%;
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.3s ease;
font-size: 0.75rem;
white-space: nowrap;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
/* ---------- Switch Form Link ---------- */
.switch-form {
font-size: 0.85rem;
color: #444;
}
.switch-form span {
color: #e60023;
font-weight: bold;
cursor: pointer;
}
/* ---------- Animations ---------- */
@keyframes bounceIn {
0% { transform: scale(0.7); opacity: 0; }
60% { transform: scale(1.05); opacity: 1; }
80% { transform: scale(0.95); }
100% { transform: scale(1); }
}
/* ---------- Mobile Responsive ---------- */
@media (max-width: 480px) {
.form-container {
padding: 25px 20px;
}
.social-login {
gap: 8px;
}
}