﻿/* ================== FORGOT PASSWORD PAGE ================== */

/* พื้นหลังทั้งหน้า */
.forgot-wrapper {
    padding: 60px 0 120px;
    background: #e4e9f3 !important;
    min-height: calc(100vh - var(--nav-height) - 60px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* กล่อง Panel กลางหน้า */
.forgot-panel {
    background: #d9e2ff !important;
    border-radius: 8px;
    border: 1px solid #d7dce5 !important;
    width: 100%;
    max-width: 950px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    padding: 0 40px 40px;
}

/* แถบขั้นตอนด้านบน */
.forgot-steps {
    display: flex;
    margin: 0 -40px 30px;
    border-bottom: 1px solid #d7dce5 !important;
    background: #d9e2ff !important;
    position: relative;
}

    /* เส้นบาง ๆ ใต้ step (ปรับให้หนาขึ้น) */
    .forgot-steps::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 32px; /*calc(50% - 2px); /* ทำให้เส้นอยู่กลางจริง */
        border-top: 4px dashed #c4bda1 !important;
        z-index: 1;
    }

    /* กล่องของแต่ละ step */
    .forgot-steps .step {
        flex: 1;
        position: relative;
        text-align: center;
        padding: 18px 0 20px;
        z-index: 2;
    }

        /* กรอบของ tab (เส้นกรอบหนาขึ้นเล็กน้อย) */
        .forgot-steps .step::before {
            content: "";
            display: block;
            margin: 0 auto 8px;
            width: 100%;
            max-width: 260px;
            height: 32px;
            background: #ffffff !important;
            border: 2px solid #d7dce5 !important; /* เดิม 1px */
        }

        /* tab กำลังทำ (สีเหลือง) */
        .forgot-steps .step.active::before {
            background: #ffc000 !important;
            border-color: #ffc000 !important;
        }

        /* tab ทำเสร็จแล้ว (เขียว) */
        .forgot-steps .step.done::before {
            background: #51B88B !important;
            border-color: #51B88B !important;
        }

    /* ตัวหนังสือ tab */
    .forgot-steps .step-label {
        position: absolute;
        left: 50%;
        top:25px; /* อยู่กลางกล่องสีขาวสูง 32px */
        transform: translateX(-50%); /* ไม่ต้องเลื่อนขึ้นลง */
        font-family: 'Roboto Mono', monospace;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #000000 !important;
        font-weight: 600;
        pointer-events: none;
    }

/* เนื้อหากลาง */
.forgot-body {
    text-align: center;
}

/* หัวข้อหลัก */
.forgot-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 22px;
    margin-bottom: 6px;
    color: #111;
    font-weight: 600;
}

/* ข้อความคำอธิบาย */
.forgot-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
}

/* ลายน้ำโลโก้ (หน้า Identify) */
.forgot-logo img {
    height: 200px;
    opacity: 0.5;
}

/* ฟอร์มทั่วไป */
.forgot-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

    .forgot-form .form-group {
        margin-bottom: 18px;
    }

    .forgot-form label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
        color: #333;
    }

    /* ช่องกรอก input ทั่วไป */
    .forgot-form input[type="email"],
    .forgot-form input[type="password"] {
        width: 100%;
        border-radius: 0;
        border: 1px solid #d7dce5 !important;
        padding: 10px 12px;
        font-size: 14px;
        outline: none;
        background: #ffffff !important;
    }

        .forgot-form input[type="email"]:focus,
        .forgot-form input[type="password"]:focus {
            border-color: #0d5c9b !important;
            box-shadow: 0 0 0 2px rgba(13, 92, 155, 0.15) !important;
        }

/* ปุ่มหลัก (Send / Continue / Update) */
.btn-primary-wide {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 8px auto 0;
    border: none;
    padding: 10px 0;
    background: #0c2f55 !important;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

    .btn-primary-wide:hover {
        background: #103b6e !important;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22);
        transform: translateY(-1px);
    }

/* ลิงก์ Back */
.back-link {
    text-align: center;
    margin-top: 18px;
}

    .back-link a {
        font-size: 12px;
        color: #0d5c9b;
        text-decoration: none;
    }

        .back-link a:hover {
            text-decoration: underline;
        }

/* ---------------- OTP (Verify) ---------------- */

.otp-wrapper {
    display: flex;
    justify-content: center;
    margin: 24px 0 16px;
}

.otp-box {
    width: 64px;
    height: 80px;
    border-radius: 10px;
    border: 2px solid #0c2f55;
    font-size: 32px;
    text-align: center;
    margin: 0 6px;
    outline: none;
    background: #ffffff;
}

    .otp-box:focus {
        border-color: #0d5c9b;
        box-shadow: 0 0 0 2px rgba(13, 92, 155, 0.2);
    }

/* resend line */
.resend-line {
    margin-top: 20px;
    font-size: 12px;
    color: #555;
}

    .resend-line a {
        color: #0d5c9b;
    }

/* เส้นคั่นล่าง (ปรับให้หนาขึ้น) */
.section-divider {
    max-width: 500px;
    height: 3px; /* เดิม 1px */
    background: #d7dce5;
    margin: 32px auto 0;
}

/* ---------------- Success ---------------- */

.success-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #8bc34a;
    margin: 40px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .success-icon span {
        font-size: 60px;
        color: #ffffff;
    }

.success-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.success-subtitle {
    font-size: 13px;
    color: #555;
}

/* ---------------- step sections toggle ---------------- */

.step-section {
    display: none;
}

    .step-section.active {
        display: block;
    }

/* Responsive */
@media (max-width: 767px) {
    .forgot-panel {
        padding: 0 18px 30px;
    }

    .forgot-steps {
        margin: 0 -18px 22px;
    }

        .forgot-steps .step::before {
            max-width: 100%;
        }

    .otp-box {
        width: 48px;
        height: 64px;
        font-size: 24px;
        margin: 0 4px;
    }
}
