﻿/* ============================================================
   FORGOT PASSWORD PAGE - ADDYBUDDY THEME
   Professional Services Platform
   ============================================================ */

.forgot-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f4f9ff 0%, #e8f2fc 100%);
    padding: 40px 20px;
}

.forgot-container {
    max-width: 480px;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Hero Section ────────────────────────────────────────────── */
.forgot-hero {
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 50%, var(--blue-accent) 100%);
    border-radius: 24px;
    padding: 40px 32px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 75, 122, 0.15);
}

.forgot-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.forgot-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.forgot-hero-content {
    position: relative;
    z-index: 1;
}

.forgot-hero-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.forgot-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.forgot-hero-title .text-gradient {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.forgot-hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Card ──────────────────────────────────────────────────────── */
.forgot-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(26, 75, 122, 0.06);
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.forgot-card:hover {
    box-shadow: 0 12px 60px rgba(26, 75, 122, 0.08);
}

.forgot-card-header {
    padding: 28px 32px 16px;
    text-align: center;
    border-bottom: 2px solid #f1f5f9;
}

.forgot-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin: 0 0 4px 0;
}

.forgot-card-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.forgot-card-body {
    padding: 28px 32px 32px;
}

/* ─── Alerts ────────────────────────────────────────────────────── */
.forgot-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.forgot-alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.forgot-alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #16a34a;
}

.forgot-alert-success i {
    color: #16a34a;
}

.forgot-alert-danger {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

.forgot-alert-danger i {
    color: #dc2626;
}

/* ─── Form ──────────────────────────────────────────────────────── */
.forgot-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.forgot-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.forgot-form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.85rem;
}

.forgot-form-label i {
    color: var(--blue-primary);
    margin-right: 4px;
}

.forgot-required {
    color: #ef4444;
    margin-left: 2px;
}

.forgot-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.forgot-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 1rem;
    z-index: 2;
}

.forgot-form-control {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: all 0.3s ease;
    color: var(--gray-dark);
    font-family: 'Inter', sans-serif;
}

.forgot-form-control:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 4px rgba(26, 75, 122, 0.08);
    background: #ffffff;
}

.forgot-form-control::placeholder {
    color: #94a3b8;
}

.forgot-form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ─── Submit Button ────────────────────────────────────────────── */
.forgot-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.forgot-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 75, 122, 0.25);
}

.forgot-submit-btn:active {
    transform: scale(0.98);
}

.forgot-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ─── Success Actions ──────────────────────────────────────────── */
.forgot-success-actions {
    text-align: center;
    margin-bottom: 16px;
}

.forgot-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 36px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 75, 122, 0.25);
    color: #ffffff;
}

/* ─── Back Link ─────────────────────────────────────────────────── */
.forgot-back-link {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.forgot-back-link a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.forgot-back-link a:hover {
    color: var(--blue-primary);
}

.forgot-back-link a i {
    margin-right: 4px;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .forgot-hero {
        padding: 30px 24px;
    }
    .forgot-hero-title {
        font-size: 1.6rem;
    }
    .forgot-hero-sub {
        font-size: 0.95rem;
    }
    .forgot-card-header {
        padding: 20px 20px 12px;
    }
    .forgot-card-body {
        padding: 20px;
    }
    .forgot-form-control {
        font-size: 0.9rem;
        padding: 10px 14px 10px 40px;
    }
    .forgot-submit-btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .forgot-hero {
        padding: 24px 16px;
    }
    .forgot-hero-title {
        font-size: 1.3rem;
    }
    .forgot-hero-icon {
        font-size: 2.2rem;
    }
    .forgot-card-header h3 {
        font-size: 1.1rem;
    }
    .forgot-card-body {
        padding: 16px;
    }
    .forgot-form-control {
        font-size: 0.85rem;
        padding: 10px 12px 10px 38px;
    }
    .forgot-btn-primary {
        width: 100%;
        justify-content: center;
    }
}