/*

General Styles

- Imports and base styling for the body and main container.

*/

@import url('https://fonts.googleapis.com/css?family=Poppins:wght@400;500;600;700&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}

body {
background: linear-gradient(135deg, rgb(34, 60, 117) 0%, rgb(50, 80, 140) 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}



.auth-container {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 2;
}



.auth-wrapper {
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
padding: 40px;
width: 100%;
max-width: 420px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
position: relative;
overflow: hidden;
}
/*

Form Box Transitions
- Controls the fade-in/out and slide effect for the login/signup forms.
*/
.form-box {
display: none;
opacity: 0;
transform: translateY(20px);
transition: all 0.4s ease;
}
.form-box.active {
display: block;
opacity: 1;
transform: translateY(0);
}
/*
Form Header
- Styles the title and subtitle of each form.
*/
.form-header {
text-align: center;
margin-bottom: 30px;
}
.form-header h2 {
color: #333;
font-size: 2rem;
font-weight: 700;
margin-bottom: 8px;
}
.form-header p {
color: #666;
font-size: 14px;
font-weight: 500;
}

/*
Form Fields
- Styles for input boxes and select dropdowns.
*/
.input-group {
position: relative;
margin-bottom: 20px;
}
.input-group input,
.input-group select {
width: 100%;
padding: 15px 20px;
border: 2px solid #e9ecef;
border-radius: 12px;
background: #f8f9fa;
font-size: 16px;
color: #333;
outline: none;
transition: all 0.3s ease;
}
.input-group input:focus,
.input-group select:focus {
border-color: #f59e0b;
background: #fff;
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
.input-group input::placeholder {
color: #999;
}
.input-group select {
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
background-position: right 20px center;
background-repeat: no-repeat;
background-size: 16px;
padding-right: 50px;
}

/*
Buttons
- Styles for primary form submission and social buttons.
*/
.auth-btn {
width: 100%;
padding: 15px;
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
border: none;
border-radius: 12px;
color: white;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin-bottom: 20px;
text-transform: uppercase;
letter-spacing: 1px;
}
.auth-btn:hover {
background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}
.auth-btn:active {
transform: translateY(0);
}
.social-btn {
width: 100%;
padding: 15px;
border: 2px solid #e9ecef;
border-radius: 12px;
background: white;
color: #333;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
margin-bottom: 15px;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
}
.social-btn:hover {
background: #f8f9fa;
border-color: #dee2e6;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.google-btn:hover {
border-color: #4285F4;
box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}
.social-icon {
flex-shrink: 0;
}
.back-btn {
background: none;
border: none;
color: #f59e0b;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: color 0.3s ease;
}
.back-btn:hover {
color: #d97706;
text-decoration: underline;
}
/*
Form Footer & Dividers
- Styles for the "Already have an account?" links and "or" dividers.
*/
.form-footer {
text-align: center;
}

.form-footer p {
color: #666;
font-size: 14px;
}

.form-footer a {
color: #f59e0b;
text-decoration: none;
font-weight: 600;
transition: color 0.3s ease;
}
.form-footer a:hover {
color: #d97706;
text-decoration: underline;
}
.auth-divider {
text-align: center;
margin: 20px 0;
position: relative;
}
.auth-divider::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background: #e9ecef;
}
.auth-divider span {
background: rgba(255, 255, 255, 0.95);
color: #666;
padding: 0 15px;
font-size: 14px;
font-weight: 500;
}
/*
Multi-Step Signup Flow
- Controls the visibility of each signup step and the progress dots.
*/
.signup-step {
display: none;
}
.signup-step.active {
display: block;
}
.progress-indicator {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 30px;
gap: 15px;
}
.progress-dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: #e9ecef;
transition: all 0.3s ease;
position: relative;
}

.progress-dot.active {
background: #f59e0b;
transform: scale(1.2);
}

.progress-dot.completed {
background: #059669;
}

/*
Status Messages & Loading States
- Styles for success, error, and loading indicators.
*/
.success-message {
background: linear-gradient(135deg, #059669 0%, #047857 100%);
color: white;
padding: 15px;
border-radius: 12px;
text-align: center;
margin-bottom: 20px;
font-weight: 600;
opacity: 0;
transform: translateY(-10px);
transition: all 0.3s ease;
}

.success-message.show {
opacity: 1;
transform: translateY(0);
}

.error-message {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
color: white;
padding: 15px;
border-radius: 12px;
text-align: center;
margin-bottom: 20px;
font-weight: 600;
opacity: 0;
transform: translateY(-10px);
transition: all 0.3s ease;
}

.error-message.show {
opacity: 1;
transform: translateY(0);
}
.auth-btn.loading {
background: #6c757d;
cursor: not-allowed;
position: relative;
color: transparent;
}

.auth-btn.loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
margin: -10px 0 0 -10px;
border: 2px solid transparent;
border-top: 2px solid white;
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin {

0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }

}
/*
responsive design
*/
@media (max-width: 768px) {
.auth-wrapper {
margin: 20px;
padding: 30px 25px;
max-width: none;
}
.form-header h2 {
font-size: 1.8rem;
}
.input-group input {
padding: 12px 15px;
font-size: 14px;
}
.auth-btn {
padding: 12px;
font-size: 14px;
}

.social-btn.primary {
padding: 15px;
font-size: 15px;
}

}
@media (max-width: 480px) {

.auth-wrapper {
margin: 15px;
padding: 25px 20px;
}
.form-header h2 {
font-size: 1.6rem;
}
.form-header p {
font-size: 13px;
}
.social-btn {
padding: 12px;
font-size: 14px;
}

}