/* Authentication Styles */
.auth-section {
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f5f1 0%, #e7ebee 100%);
}

.auth-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(28, 62, 95, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0c552a 0%, #46b3e6 50%, #f5a811 100%);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-logo img {
    height: 50px;
    margin-right: 15px;
}

.auth-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1c3e5f;
    margin: 0;
    text-align: center;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    text-align: center;
}

/* Auth Form Container */
.auth-form-container {
    width: 100%;
}

.auth-messages {
    margin-bottom: 1.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

/* Form Rows for side-by-side fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1c3e5f;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    color: #1c3e5f;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #46b3e6;
    box-shadow: 0 0 0 3px rgba(70, 179, 230, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #6b7280;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-input:focus + .input-icon {
    color: #46b3e6;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #46b3e6;
    background: rgba(70, 179, 230, 0.1);
}

.password-toggle .eye-off-icon {
    display: none;
}

.password-toggle.show-password .eye-icon {
    display: none;
}

.password-toggle.show-password .eye-off-icon {
    display: block;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.75rem;
    display: none;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 25%;
    background: #ef4444;
}

.strength-fill.fair {
    width: 50%;
    background: #f59e0b;
}

.strength-fill.good {
    width: 75%;
    background: #10b981;
}

.strength-fill.strong {
    width: 100%;
    background: #059669;
}

.strength-text {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* Error Messages */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
    display: flex;
    align-items: center;
}

.error-message::before {
    content: '⚠';
    margin-right: 0.25rem;
}

/* Hide error icon and message when there is no error text */
.error-message:empty {
    display: none;
}

.error-message:empty::before {
    content: none;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Custom Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.checkbox-input:checked ~ .checkbox-custom {
    background-color: #0c552a;
    border-color: #0c552a;
}

.checkbox-input:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.4;
}

.forgot-link {
    color: #46b3e6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #1c3e5f;
    text-decoration: underline;
}

/* Inline Links */
.inline-link {
    color: #46b3e6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: #1c3e5f;
    text-decoration: underline;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
}

.auth-btn.primary-btn {
    background: linear-gradient(135deg, #0c552a 0%, #0d6b35 100%);
    color: #ffffff;
}

.auth-btn.primary-btn:hover {
    background: linear-gradient(135deg, #0d6b35 0%, #0c552a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 85, 42, 0.3);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: #ffffff;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
}

.auth-link {
    color: #46b3e6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #1c3e5f;
    text-decoration: underline;
}

/* Verification Pages */
.verification-success,
.verification-error,
.verification-pending,
.reset-error {
    text-align: center;
    padding: 2rem 0;
}

.verification-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.verification-icon.success {
    color: #10b981;
    background: #d1fae5;
}

.verification-icon.error {
    color: #ef4444;
    background: #fee2e2;
}

.verification-icon.pending {
    color: #46b3e6;
    background: #dbeafe;
}

.verification-success h2,
.verification-error h2,
.reset-error h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1c3e5f;
    margin-bottom: 1rem;
}

.verification-success p,
.verification-error p,
.reset-error p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Verification Steps */
.verification-steps {
    margin: 2rem 0;
    text-align: left;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #46b3e6;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #46b3e6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1c3e5f;
    margin: 0 0 0.25rem 0;
}

.step-content p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert::before {
    font-weight: bold;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-success::before {
    content: '✓';
}

.alert-error,
.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-error::before,
.alert-danger::before {
    content: '✗';
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-warning::before {
    content: '⚠';
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-info::before {
    content: 'ℹ';
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        padding: 1rem;
    }
    
    .auth-container {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 16px;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .auth-logo img {
        height: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .forgot-link {
        align-self: flex-end;
    }
    
    .verification-steps {
        margin: 1.5rem 0;
    }
    
    .step {
        padding: 0.75rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem 1rem;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .form-input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .input-icon {
        left: 0.875rem;
    }
    
    .password-toggle {
        right: 0.875rem;
    }
    
    .verification-icon {
        width: 60px;
        height: 60px;
    }
    
    .verification-success h2,
    .verification-error h2,
    .reset-error h2 {
        font-size: 1.5rem;
    }
}

/* Focus Management */
.form-input:focus,
.auth-btn:focus,
.password-toggle:focus {
    outline: 2px solid #46b3e6;
    outline-offset: 2px;
}

/* Loading State */
.auth-btn.loading .btn-text {
    opacity: 0;
}

.auth-btn.loading .btn-loader {
    display: block;
}

/* Success State */
.form-input.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Animation for form appearance */
.auth-container {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for interactive elements */
.form-input:hover:not(:focus) {
    border-color: #d1d5db;
}

.checkbox-wrapper:hover .checkbox-custom {
    border-color: #46b3e6;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .auth-container,
    .form-input,
    .auth-btn,
    .checkbox-custom {
        animation: none;
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .auth-container {
        border: 2px solid #1c3e5f;
    }
    
    .form-input {
        border-width: 2px;
    }
    
    .auth-btn.primary-btn {
        border: 2px solid #ffffff;
    }
}

/* Waiting List Form Sections */
.form-section {
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.section-title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #46b3e6;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #46b3e6, #1c3e5f);
    border-radius: 1px;
}

/* Enhanced Form Groups within sections */
.form-section .form-group {
    margin-bottom: 25px;
}

.form-section .form-group:last-child {
    margin-bottom: 0;
}

/* Textarea Specific Styling */
.textarea-input {
    min-height: 120px;
    resize: vertical;
    padding-top: 15px;
    line-height: 1.6;
    font-family: inherit;
}

.textarea-icon {
    top: 15px;
    align-self: flex-start;
}

/* Enhanced Input Focus States for sections */
.form-section .form-input:focus {
    border-color: #46b3e6;
    box-shadow: 0 0 0 3px rgba(70, 179, 230, 0.1);
    transform: translateY(-1px);
}

/* Form Section Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: slideInUp 0.6s ease-out;
}

.form-section:nth-child(2) {
    animation-delay: 0.1s;
}

.form-section:nth-child(3) {
    animation-delay: 0.2s;
}

/* Enhanced Error Messages for sections */
.form-section .error-message {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #e74c3c;
    font-weight: 500;
}

/* Mobile Responsive for sections */
@media (max-width: 768px) {
    .form-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .textarea-input {
        min-height: 100px;
    }
}

/* Enhanced Button Styling */
.auth-btn.primary-btn {
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #46b3e6 0%, #1c3e5f 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(70, 179, 230, 0.3);
    transition: all 0.3s ease;
}

.auth-btn.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 179, 230, 0.4);
}

/* Enhanced Checkbox Section */
.form-options {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Enhanced Auth Footer */
.auth-footer {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    border: 1px solid #e9ecef;
}