/* ==========================================
   FORGOT PASSWORD PAGE - SPECIFIC STYLES
   ========================================== */

.forgot-page {
    width: 100%;
    min-height: 100vh;
    background: #0D0F10;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.forgot-header {
    text-align: center;
    margin-bottom: 2rem;
}

.forgot-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-icon svg {
    width: 35px;
    height: 35px;
    color: #3B82F6;
}

.forgot-icon.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.forgot-icon.success svg {
    color: #10B981;
}

.forgot-title {
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.forgot-subtitle {
    font-size: 0.95rem;
    color: #A9ADB1;
    line-height: 1.5;
}

.forgot-form {
    margin-bottom: 1.5rem;
}

.forgot-form-row {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
}

.forgot-form-group {
    position: relative;
}

.forgot-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.forgot-required {
    color: #EF4444;
    margin-left: 0.25rem;
}

.forgot-input-wrapper {
    position: relative;
}

.forgot-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6B7280;
    pointer-events: none;
    transition: color 0.3s ease;
}

[dir="rtl"] .forgot-input-icon {
    left: auto;
    right: 1rem;
}

.forgot-form-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    background: rgba(26, 29, 31, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #FFFFFF;
    font-family: inherit;
    transition: all 0.3s ease;
}

[dir="rtl"] .forgot-form-input {
    padding: 0.85rem 3rem 0.85rem 1rem;
}

.forgot-form-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.forgot-form-input:focus ~ .forgot-input-icon {
    color: #3B82F6;
}

.forgot-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.forgot-form-group.error .forgot-form-input {
    border-color: #EF4444;
}

.forgot-error-message {
    display: none;
    font-size: 0.8rem;
    color: #EF4444;
    margin-top: 0.4rem;
}

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

.forgot-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 1.75rem;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.forgot-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
}

.forgot-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.forgot-btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.forgot-submit-btn:hover:not(:disabled) .forgot-btn-icon {
    transform: translateX(3px);
}

.forgot-btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: forgotSpin 0.6s linear infinite;
}

@keyframes forgotSpin {
    to { transform: rotate(360deg); }
}

.forgot-submit-btn.loading .forgot-btn-text,
.forgot-submit-btn.loading .forgot-btn-icon {
    display: none;
}

.forgot-submit-btn.loading .forgot-btn-loader {
    display: block;
}

.forgot-form-messages {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    display: none;
}

.forgot-form-messages.show {
    display: block;
}

.forgot-form-messages.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.forgot-form-messages.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.forgot-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.forgot-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3B82F6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-back-link:hover {
    color: #60A5FA;
    gap: 0.65rem;
}

.forgot-back-link svg {
    width: 16px;
    height: 16px;
}

/* Success Card */
.forgot-success-card {
    padding: 2rem 1.75rem;
    background: rgba(26, 29, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.forgot-success-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
}

.forgot-success-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.forgot-success-description {
    font-size: 0.9rem;
    color: #A9ADB1;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.forgot-success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.forgot-success-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.forgot-success-btn.primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border: none;
    color: #FFFFFF;
}

.forgot-success-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
}

.forgot-success-btn.secondary {
    background: rgba(26, 29, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #A9ADB1;
}

.forgot-success-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: rgba(59, 130, 246, 0.3);
}

.forgot-help-text {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.forgot-help-text p {
    font-size: 0.85rem;
    color: #A9ADB1;
    margin: 0;
}

.forgot-help-text small {
    font-size: 0.8rem;
    color: #6B7280;
}

@media (max-width: 768px) {
    .forgot-page {
        padding: 1.5rem 0;
    }

    .forgot-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .forgot-container {
        padding: 0 1.25rem;
    }

    .forgot-form-input {
        padding: 0.8rem 0.95rem 0.8rem 2.75rem;
        font-size: 0.85rem;
    }

    .forgot-icon {
        width: 65px;
        height: 65px;
    }

    .forgot-icon svg {
        width: 32px;
        height: 32px;
    }
}

.forgot-page *:focus-visible {
    outline: 3px solid #3B82F6;
    outline-offset: 3px;
    border-radius: 4px;
}