/* Forgot Password Page Styles - Professional Modern Soft Design with Color Variables */

/* Forgot Password Container */
.forgot-password--container {
    min-height: 50vh;
    padding: 20px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(248, 249, 250, 0.8) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(248, 249, 250, 0.8) 100%
    );
}

.forgot-password--container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.forgot-password--wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Forgot Password Card */
.forgot-password--card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    margin: 0 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
}

/* Forgot Password Header */
.forgot-password--header {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 249, 250, 0.95) 100%
    );
    padding: 28px 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.forgot-password--header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.02) 0%,
        transparent 30%,
        transparent 70%,
        rgba(212, 175, 55, 0.03) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.forgot-password--header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.2) 50%,
        transparent 100%
    );
}

.forgot-password--header-content {
    position: relative;
    z-index: 2;
}

.forgot-password--title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.forgot-password--subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: 0.005em;
    opacity: 0.8;
}

/* Main Content Area */
.forgot-password--main-content {
    display: flex;
    min-height: 400px;
}

/* Information Section */
.forgot-password--info {
    flex: 1;
    padding: 44px 30px;
    background: rgba(248, 249, 250, 0.6);
    border-right: 1px solid rgba(233, 236, 239, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.forgot-password--info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.forgot-password--info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.1) 0%, rgba(33, 150, 243, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    font-size: 1.2rem;
    box-shadow: 
        0 4px 12px rgba(25, 118, 210, 0.15),
        0 2px 6px rgba(25, 118, 210, 0.1);
}

.forgot-password--info-content h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.01em;
}

.forgot-password--info-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.forgot-password--info-content li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    opacity: 0.9;
}

.forgot-password--info-content li:last-child {
    margin-bottom: 0;
}

.forgot-password--info-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-green);
    font-weight: 600;
    font-size: 0.9rem;
    width: 18px;
    height: 18px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-password--security-note {
    background: rgba(255, 243, 205, 0.8);
    border: 1px solid rgba(255, 234, 167, 0.6);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.forgot-password--security-icon {
    flex-shrink: 0;
    color: #856404;
    font-size: 1.1rem;
    margin-top: 2px;
    width: 24px;
    height: 24px;
    background: rgba(133, 100, 4, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-password--security-content {
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.forgot-password--security-content strong {
    font-weight: 600;
}

/* Forgot Password Body */
.forgot-password--body {
    flex: 1;
    padding: 44px 40px 48px;
    background: rgba(255, 255, 255, 0.98);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Forgot Password Form */
.forgot-password--form {
    position: relative;
}

.forgot-password--form-group {
    margin-bottom: 28px;
    position: relative;
}

.forgot-password--form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: 0.005em;
    opacity: 0.9;
}

.forgot-password--form-input {
    width: 100%;
    padding: 18px 24px;
    border: 1px solid rgba(233, 236, 239, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.02),
        0 1px 4px rgba(0, 0, 0, 0.03);
}

.forgot-password--form-input::placeholder {
    color: var(--input-placeholder);
    font-weight: 400;
    opacity: 0.7;
}

.forgot-password--form-input:focus {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 
        0 0 0 4px rgba(212, 175, 55, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px) scale(1.005);
    background: var(--pure-white);
}

.forgot-password--form-input:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.03),
        0 2px 6px rgba(0, 0, 0, 0.02);
    transform: translateY(-0.5px);
}

/* Forgot Password Button */
.forgot-password--submit-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--primary-black);
    border: none;
    border-radius: 20px;
    color: var(--pure-white);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    box-shadow:
        0 8px 24px var(--black-alpha-25),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
    letter-spacing: 0.005em;
    margin-bottom: 32px;
}

.forgot-password--submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.forgot-password--submit-btn:hover::before {
    left: 100%;
}

.forgot-password--submit-btn:hover {
    background: var(--primary-black);
    transform: translateY(-1px) scale(1.005);
    box-shadow:
        0 8px 24px var(--black-alpha-25),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.forgot-password--submit-btn:active {
    transform: translateY(0) scale(0.998);
    transition: all 0.1s ease;
}

.forgot-password--submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Login Link */
.forgot-password--login {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(233, 236, 239, 0.5);
}

.forgot-password--login-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    opacity: 0.9;
}

.forgot-password--login-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    margin-left: 6px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    opacity: 0.9;
}

.forgot-password--login-link:hover {
    color: var(--btn-secondary-hover);
    text-decoration: none;
    opacity: 1;
    transform: translateY(-1px);
}

/* Loading State */
.forgot-password--form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.forgot-password--submit-btn.loading {
    position: relative;
}

.forgot-password--submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-black);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: forgotPasswordSpin 1s linear infinite;
    transform: translate(-50%, -50%);
}

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

/* Error States */
.forgot-password--form-group.error .forgot-password--form-input {
    border-color: var(--error-red);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.forgot-password--error-message {
    color: var(--error-red);
    font-size: 0.8rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.forgot-password--error-message i {
    font-size: 0.7rem;
}

/* Success States */
.forgot-password--form-group.success .forgot-password--form-input {
    border-color: var(--success-green);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .forgot-password--container {
        padding: 40px 0;
    }
    
    .forgot-password--wrapper {
        min-height: calc(100vh - 80px);
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .forgot-password--card {
        margin: 0 15px;
        border-radius: 20px;
        max-width: 520px;
    }
    
    .forgot-password--header {
        padding: 35px 25px;
    }
    
    .forgot-password--title {
        font-size: 1.8rem;
        letter-spacing: 0.8px;
    }
    
    .forgot-password--subtitle {
        font-size: 0.9rem;
    }
    
    .forgot-password--main-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .forgot-password--info {
        padding: 30px 25px;
        border-right: none;
        border-bottom: 1px solid rgba(233, 236, 239, 0.5);
    }
    
    .forgot-password--info-card {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .forgot-password--body {
        padding: 35px 25px;
    }
    
    .forgot-password--form-input {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .forgot-password--submit-btn {
        padding: 16px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .forgot-password--container {
        padding: 30px 0;
    }
    
    .forgot-password--wrapper {
        min-height: calc(60vh - 60px);
        padding-top: 10px;
    }
    
    .forgot-password--card {
        margin: 0 10px;
        border-radius: 18px;
    }
    
    .forgot-password--header {
        padding: 30px 20px;
    }
    
    .forgot-password--title {
        font-size: 1.6rem;
        letter-spacing: 0.6px;
        margin-bottom: 6px;
    }
    
    .forgot-password--subtitle {
        font-size: 0.85rem;
    }
    
    .forgot-password--info {
        padding: 18px 20px;
    }
    
    .forgot-password--info-card {
        padding: 20px;
    }
    
    .forgot-password--body {
        padding: 30px 20px;
    }
    
    .forgot-password--form-group {
        margin-bottom: 20px;
    }
    
    .forgot-password--form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .forgot-password--form-input {
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .forgot-password--submit-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    
    .forgot-password--login {
        padding-top: 20px;
    }
    
    .forgot-password--login-text {
        font-size: 0.9rem;
    }
}

/* Animation for forgot password card */
.forgot-password--card {
    animation: forgotPasswordFadeInUp 0.8s ease-out;
}

@keyframes forgotPasswordFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.forgot-password--form-input:focus,
.forgot-password--submit-btn:focus,
.forgot-password--login-link:focus {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .forgot-password--card {
        border: 3px solid var(--primary-black);
    }
    
    .forgot-password--form-input {
        border-width: 3px;
    }
    
    .forgot-password--submit-btn {
        border: 3px solid var(--primary-black);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .forgot-password--card,
    .forgot-password--submit-btn,
    .forgot-password--form-input {
        animation: none;
        transition: none;
    }
    
    .forgot-password--card:hover {
        transform: none;
    }
    
    .forgot-password--submit-btn:hover {
        transform: none;
    }
}
