/* فونت‌های لوکال – مقاوم در برابر قطعی اینترنت */
@font-face {
    font-family: 'Poppins';
    src: url("../downloaded/fonts/poppins/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url("../downloaded/fonts/poppins/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url("../downloaded/fonts/space-grotesk/SpaceGrotesk-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url("../downloaded/fonts/space-grotesk/SpaceGrotesk-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
        :root {
            --primary: #2563eb;
            --primary-dark: #1e40af;
            --primary-light: #eff6ff;
            --secondary: #06b6d4;
            --accent: #fbbf24;
            --dark: #23272e;
            --light: #eff6ff;
            --gray: #64748b;
        }

        /* ---- Body ---- */
        body {
            font-family: 'Poppins', 'Space Grotesk', Arial, sans-serif;
            background: linear-gradient(135deg, var(--light) 60%, var(--accent) 180%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            margin:0;
        }

        /* ---- Container ---- */
        .forgot-container {
            background: rgba(255,255,255,.98);
            padding: 2.4rem;
            max-width: 420px;
            width: 96vw;
            border-radius: 1.3rem;
            box-shadow: 0 12px 36px rgba(60,30,90,0.13);
            text-align: center;
            position: relative;
            animation: fadeInDown 0.8s;
        }

        /* ---- Headings ---- */
        h2 {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            text-align: center;
            margin-bottom: 1rem;
            color: var(--primary);
        }

        /* ---- Progress Steps ---- */
        .progress-steps {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
            position: relative;
        }

        .step-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid var(--primary-light);
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: 700;
            background-color: white;
            z-index: 2;
            transition: all 0.4s ease;
        }

        .step-circle.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .step-label {
            margin-top: 5px;
            font-size: 0.85rem;
            color: var(--gray);
            text-align: center;
            width: 70px;
            transition: all 0.3s;
        }

        .step-label.active {
            color: var(--primary-dark);
            font-weight: 600;
        }

        /* Line between steps */
        .step-line {
            position: absolute;
            top: 20px;
            left: 20%;
            width: 60%;
            height: 4px;
            background-color: var(--primary-light);
            z-index: 1;
            border-radius: 2px;
            transition: all 0.4s ease;
        }

        .step-line.active {
            background-color: var(--primary);
        }

        /* ---- Paragraph ---- */
        p {
            font-family: 'Poppins', sans-serif;
            font-size: 0.95rem;
            color: #5e6372;
            margin-bottom: 1rem;
        }

        /* ---- Form Label ---- */
        .form-label {
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            color: var(--primary-dark);
            display: block;
            text-align: center;
            margin-bottom: 0.5rem;
        }

        /* ---- Email Field with Icon ---- */
        .email-group {
            position: relative;
            max-width: 85%;
            margin: 0 auto 1rem auto;
        }

        .email-group input {
            width: 100%;
            padding: 0.95rem 2.5rem 0.95rem 2.2rem;
            border-radius: 9px;
            border: 1.2px solid var(--primary-light);
            text-align: center;
            font-size: 1rem;
            transition: all 0.3s;
        }

        .email-group input:focus {
            border-color: var(--primary);
            background-color: #fff;
        }

        .email-group i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary);
            font-size: 1.2rem;
        }

        /* ---- Password Input Group ---- */
        .password-input-group {
            position: relative;
            max-width: 85%;
            margin: 0 auto 1rem auto;
        }

        .password-input-group input {
            width: 100%;
            padding: 0.95rem 5rem 0.95rem 1rem;
            border-radius: 9px;
            border: 1.2px solid var(--primary-light);
            text-align: center;
            font-size: 1rem;
            transition: all 0.3s;
        }

        .password-input-group input:focus {
            border-color: var(--primary);
            background-color: #fff;
        }

        .password-input-group button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 10px;
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 1.2rem;
            color: var(--primary);
            margin-left: 0.2rem;
        }

        /* ---- Helper Text ---- */
        #emailHelp, #passwordHelp {
            font-size: 0.85rem;
            color: var(--gray);
            text-align: center;
            display: none;
            margin-top: 0.25rem;
        }

        /* ---- Buttons ---- */
        .saas-btn {
            background: linear-gradient(90deg, var(--primary), var(--secondary) 80%);
            color: #fff!important;
            border: none;
            border-radius: 12px;
            padding: 0.93rem 2.35rem;
            font-size: 1.05rem;
            font-weight: 600;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: all 0.25s;
        }

        .saas-btn:hover {
            background: linear-gradient(90deg, var(--primary-dark), var(--secondary) 80%);
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 8px 30px rgba(37,99,235,0.17);
        }

        .back-btn {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary-dark);
            font-weight: 600;
            border-radius: 10px;
            padding: 0.65rem 1.6rem;
            transition: all 0.25s ease;
            text-decoration: none;
            margin-top: 0.5rem;
        }

        .back-btn:hover {
            background: var(--primary);
            color: #fff !important;
            box-shadow: 0 6px 16px rgba(37,99,235,0.18);
            transform: translateY(-2px);
        }

        /* ---- Step Display ---- */
        .step { display: none; opacity:0; transform: translateY(20px); transition: all 0.4s; }
        .step-active { display: block; opacity:1; transform: translateY(0); }

        /* ---- Animations ---- */
        @keyframes fadeInDown {
            0% { opacity: 0; transform: translateY(-40px);}
            100% { opacity: 1; transform: translateY(0);}
        }

        /* ---- Responsive ---- */
        @media (max-width: 420px) {
            .forgot-container { padding: 1.2rem 1rem; }
            .email-group, .password-input-group { max-width: 95%; }
        }
