/* Login/Auth Page Specific Styles */

/* Hero Header */
.auth-hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.auth-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.auth-hero p {
    font-size: 1.125rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Auth Container */
.auth-main {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
                0 12px 32px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    position: relative;
}

/* Auth Header inside card */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.auth-header p {
    font-size: 0.9375rem;
    color: #666;
    margin: 0;
}

/* Progress Indicator */
.progress-indicator {
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-step .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: #4CAF50;
    color: white;
}

.progress-step span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #999;
    transition: color 0.3s ease;
}

.progress-step.active span {
    color: #1a1a1a;
}

.progress-divider {
    width: 40px;
    height: 2px;
    background: #e0e0e0;
}

/* Auth Steps */
.auth-step {
    animation: fadeIn 0.3s ease;
}

.auth-step.hidden {
    display: none;
}

/* Form Elements */
.form-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
}

.auth-note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

/* Back Link */
.back-link {
    margin-bottom: 1.5rem;
}

.link-btn {
    color: #4CAF50;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.link-btn:hover {
    opacity: 0.8;
    transform: translateX(-2px);
}

/* Sent To Box */
.sent-to {
    padding: 1rem;
    background: #E8F5E9;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid #C8E6C9;
}

.sent-to p {
    margin: 0;
    color: #2E7D32;
    font-size: 0.875rem;
}

.sent-to strong {
    font-weight: 600;
}

/* OTP Input Grid */
.otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.otp-input {
    width: 100%;
    height: 56px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
    background: white;
}

.otp-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.otp-input.filled {
    border-color: #4CAF50;
    background: #E8F5E9;
}

.otp-input:hover {
    border-color: #c0c0c0;
}

/* Resend Section */
.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.resend-section {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
}

.resend-timer {
    margin-bottom: 0.75rem;
    color: #666;
}

.resend-btn {
    background: none;
    border: none;
    color: #4CAF50;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: opacity 0.2s;
    font-size: 0.875rem;
}

.resend-btn:hover:not(:disabled) {
    opacity: 0.8;
}

.resend-btn:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

/* Error State */
.error-message {
    padding: 1rem;
    background: #FFEBEE;
    color: #C62828;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    display: none;
    border: 1px solid #FFCDD2;
    line-height: 1.5;
}

.error-message.show {
    display: block;
    animation: shake 0.5s;
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    display: none;
}

.loading-spinner.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

/* Trust Footer */
.auth-trust {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.trust-item:last-child {
    margin-bottom: 0;
}

.trust-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.trust-text {
    font-size: 0.875rem;
    color: #666;
    text-align: left;
    line-height: 1.5;
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-hero h1 {
        font-size: 2rem;
    }
    
    .auth-hero p {
        font-size: 1rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .auth-hero {
        padding: 2rem 1rem 1.5rem;
    }
    
    .auth-hero h1 {
        font-size: 1.75rem;
    }
    
    .auth-hero p {
        font-size: 0.9375rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .otp-inputs {
        gap: 0.375rem;
    }
    
    .otp-input {
        height: 48px;
        font-size: 1.25rem;
    }
    
    .progress-steps {
        gap: 0.5rem;
    }
    
    .progress-divider {
        width: 24px;
    }
    
    .auth-header h1 {
        font-size: 1.375rem;
    }
}
