/* =====================
   AUTH PAGE ISOLATION
===================== */

.article__detail .auth-page,
.article__detail .auth-page * {
    font-family: "Barlow", sans-serif !important;
}

.article__detail .auth-page input,
.article__detail .auth-page textarea,
.article__detail .auth-page select {
    all: unset;
    box-sizing: border-box;
    font-family: "Barlow", sans-serif !important;
}

/* KHÔNG reset button */
.article__detail .auth-page button {
    font-family: "Barlow", sans-serif !important;
}
/* =====================
   ROOT VARIABLES (LOCAL)
===================== */
.auth-page {
    --gold: #f26c21;
    --gold-dark: #d85b18;
    --gold-light: #ff9a5c;
    --text-main: #1f2937;
    --input-bg: #ffffff;
    --input-border: #e5e7eb;
}

/* =====================
   FONT
===================== */
@font-face {
    font-family: "Barlow";
    src: url("../fonts/Barlow-Regular.ttf") format("truetype");
}

.auth-page {
    font-family: "Barlow", sans-serif;
}

/* =====================
   FORM WRAPPER
===================== */
.auth-page .login-form {
    width: 70%;
    margin: 0 auto;
    padding: 24px 0;
}

/* =====================
   FORM GROUP
===================== */
.auth-page .mb-3 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

/* =====================
   LABEL
===================== */
.auth-page label {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

/* =====================
   INPUT
===================== */
.auth-page input:not([type="checkbox"]) {
    height: 56px;
    padding: 0 16px;
    font-size: 17px;
    color: var(--text-main);
    border-radius: 14px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    transition: 0.25s ease;
}

.auth-page input:not([type="checkbox"]):focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(242,108,33,0.2);
}

/* =====================
   CHECKBOX ROW
===================== */
.auth-page .vng-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-page input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.auth-page .vng-forgot {
    font-size: 14px;
    color: var(--gold-dark);
    text-decoration: none;
}

.auth-page .vng-forgot:hover {
    text-decoration: underline;
}

/* =====================
   BUTTON
===================== */
.auth-page button {
    display: flex; /* căn giữa text */
    align-items: center;
    justify-content: center;

    height: 56px;
    width: 100%;
    background: var(--gold);

    border-radius: 16px;
    border: none;
    outline: none;
    box-shadow: none;

    color: #fff;
    font-size: 20px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-page button:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}
.auth-page button:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

/* =====================
   REGISTER
===================== */
.auth-page .vng-register {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
}

.auth-page .vng-register a {
    color: var(--gold-dark);
    font-weight: 600;
    text-decoration: none;
}

.auth-page .vng-register a:hover {
    text-decoration: underline;
}

/* =====================
   ALERT
===================== */
.auth-page .alert {
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
}

.auth-page .alert-danger {
    background: #fde2e2;
    color: #991b1b;
}

.auth-page .alert-success {
    background: #dcfce7;
    color: #166534;
}

.auth-page .alert-warning {
    background: #fef3c7;
    color: #92400e;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    .auth-page .login-form {
        width: 92%;
    }

    .auth-page input,
    .auth-page button {
        height: 50px;
        font-size: 16px;
    }
}
/* Hàng checkbox */
.auth-page .vng-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* form-check chỉnh lại cho đẹp */
.auth-page .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-page input[type="checkbox"] {
    all: revert;
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
}
/* Label của checkbox không bị font 18px */
.auth-page .form-check-label {
    font-size: 14px !important;
    font-weight: 400 !important;
    margin: 0;
}
/* Reset label bị theme đè */
.article__detail .auth-page form label {
    float: none !important;
    clear: none !important;
    width: auto !important;
    height: auto !important;
    text-align: left !important;
    padding-right: 0 !important;

    font-family: "Barlow", sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* FIX hàng checkbox */
.auth-page .mb-3.vng-options {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
}

.auth-page .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}
