/* Forgot Password Page Styles */

/* Hero Section */
.hero-section {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="forgot-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(128,128,128,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23forgot-pattern)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 500px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-benefits li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.hero-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Forgot Password Form */
.forgot-password-form-container {
    background: var(--background-primary);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header .icon {
    width: 60px;
    height: 60px;
    background: var(--background-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 auto 20px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.forgot-password-form {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.reset-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: 24px;
}

.reset-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.reset-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.form-footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.back-to-login {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-login:hover {
    text-decoration: underline;
}

/* Success State */
.success-state {
    text-align: center;
    padding: 32px;
}

.success-state .icon {
    width: 80px;
    height: 80px;
    background: var(--background-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto 24px;
}

.success-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.success-state p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.success-state .email-sent {
    background: var(--background-secondary);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.success-state .email-sent strong {
    color: var(--text-primary);
    font-weight: 500;
}

.resend-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.resend-link:hover {
    text-decoration: underline;
}

/* Help Section */
.help-section {
    background: var(--background-secondary);
    padding: 80px 0;
}

.help-content {
    text-align: center;
    margin-bottom: 48px;
}

.help-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.help-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.help-card {
    background: var(--background-primary);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-base);
}

.help-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.help-card .icon {
    width: 60px;
    height: 60px;
    background: var(--background-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 auto 20px;
}

.help-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.help-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.help-card .btn {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.help-card .btn:hover {
    background: var(--background-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Security Tips */
.security-tips {
    background: var(--background-primary);
    padding: 80px 0;
}

.security-content {
    text-align: center;
    margin-bottom: 48px;
}

.security-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.security-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.tips-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.tip-item {
    background: var(--background-secondary);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tip-item .icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tip-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Loading States */
.reset-btn.loading {
    position: relative;
    color: transparent;
}

.reset-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--text-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form Validation */
.form-group.error input {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-group.success input {
    border-color: var(--text-secondary);
}

.form-error {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

/* Status Messages */
.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-message.success {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.status-message.error {
    background: rgba(255, 0, 0, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.status-message.warning {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .forgot-password-form-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .forgot-password-form-container {
        padding: 32px 24px;
    }
    
    .help-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .help-card {
        padding: 24px;
    }
    
    .help-content h2,
    .security-content h2 {
        font-size: 2rem;
    }
    
    .tip-item {
        padding: 20px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .forgot-password-form-container {
        padding: 24px 16px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-header .icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .success-state .icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .help-card .icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .tip-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .tip-item .icon {
        margin: 0 auto;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Focus States */
.forgot-password-form-container:focus-within {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--primary-color);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .forgot-password-form-container {
        border: 2px solid var(--text-primary);
    }
    
    .form-group input {
        border: 2px solid var(--text-primary);
    }
    
    .reset-btn {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .help-card,
    .reset-btn {
        transition: none;
    }
    
    .reset-btn.loading::after {
        animation: none;
    }
}