﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #3348E0;
    --bg-color: #F0F2F5;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --border-color: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
}

/* Part 1. Enter Email Page */
.forgot-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.forgot-container {
    display: flex;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 900px;
    overflow: hidden;
}

/* --- LEFT COLUMN --- */
.info-panel {
    background-color: var(--primary-color);
    color: white;
    width: 45%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo, .logo-dark {
    font-size: 20px;
    font-weight: 700;
}

.logo {
    margin-bottom: 30px;
}

    .logo span {
        color: #90caf9;
    }

.logo-dark {
    color: var(--text-main);
}

    .logo-dark span {
        color: var(--primary-color);
    }

.info-panel h1 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.5;
}

.features {
    list-style: none;
}

    .features li {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        font-size: 14px;
        font-weight: 500;
    }

.step {
    background: white;
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* --- RIGHT COLUMN (FORM) --- */
.form-panel {
    width: 55%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 10px;
}

    .form-header h2 {
        font-size: 28px;
        font-weight: 700;
        color: var(--text-main);
    }

.description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

.hide-on-desktop {
    display: none;
}

.mobile-header {
    margin-bottom: 25px;
}

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

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-main);
        margin-bottom: 8px;
    }

    .form-group input[type="email"] {
        width: 100%;
        padding: 14px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-size: 14px;
        outline: none;
        background: #fff;
        transition: 0.2s;
    }

    .form-group input:focus {
        border-color: var(--primary-color);
    }

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 10px;
}

    .btn-submit:hover {
        opacity: 0.9;
    }

.back-link {
    text-align: center;
    margin-top: 25px;
}

    .back-link a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        transition: 0.2s;
    }

        .back-link a i {
            margin-right: 5px;
        }

        .back-link a:hover {
            color: var(--primary-color);
        }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .forgot-wrapper {
        padding: 15px;
        align-items: flex-start;
    }

    .forgot-container {
        flex-direction: column;
        border-radius: 16px;
    }

    .info-panel {
        display: none;
    }

    .form-panel {
        width: 100%;
        padding: 40px 20px;
    }

    .hide-on-desktop {
        display: block;
    }
}


/* Part 2. Verify Reset Code Page */
.otp-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 25px;
    margin-top: 10px;
}

.otp-input {
    width: 100%;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--text-main);
    transition: 0.2s;
}

    .otp-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(51, 72, 224, 0.1);
    }

/* Bước chưa tới: mờ. Bước hiện tại: trang tự gắn class "active" (không viết cứng bước 2 nữa) */
.features li .step {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

.features li .step.active {
    background-color: #fff;
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .otp-wrapper {
        gap: 6px;
    }

    .otp-input {
        height: 50px;
        font-size: 20px;
    }
}