/* ==========================================================================
   CloudVina — Dang nhap / dang ky / quen mat khau / gui ho tro cua khach
   (layouts/auth.tpl). Nap SAU landing.css, chi them phan rieng cua form.

   Khung form nam giua trang, nen video mo va toi lai phia sau de form la thu noi
   nhat. Van chay tren base.tpl nen Bootstrap van nap: moi luat nam trong .au-form.

   Dat ten: .au-*
   ========================================================================== */

html, html body { background: #030510; }
.page-wrapper, .page-inner { display: block; background: transparent; }

/* Chieu cao bam theo khung video (--ld-frame-h), khong theo viewport: Ctrl - thi
   form van nam tren nen thay vi tut xuong vung den ben duoi. */
/* Nen: chi rieng cac trang nay. Phong to nhe de vung mo khong lo mep video. */
.au-page .ld-video {
    transform: scale(1.05);
    object-fit: cover;
    filter: blur(7px);
    object-position: center;
}
.ld-js .au-page .ld-veil { opacity: 1; background: rgba(3, 5, 16, .55); }

.au-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: min(100vh, var(--ld-frame-h));
    min-height: min(100svh, var(--ld-frame-h));
    padding: 96px 0 48px;
}
.au-form {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    color: #fff;
    font-size: 15px;
    animation: ldUp .8s ease .2s both;
}
.au-form .flex-1, .au-form .container { width: 100%; max-width: none; padding: 0; margin: 0; }
.au-form .cv-auth { max-width: none !important; margin: 0; }
.au-form .card {
    margin: 0 !important;
    padding: 36px !important;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(12, 12, 15, .88);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55) !important;
}

.ld-body .au-form h1 {
    margin: 0 0 10px !important;
    font-size: 34px;
    font-weight: 600 !important;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-align: center !important;
    color: #fff !important;
}
.au-form .card > p {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.55;
    text-align: center !important;
    color: rgba(255, 255, 255, .78);
}

.ld-body .au-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.au-form .form-control {
    display: block;
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 8px;
    background: rgba(255, 255, 255, .09);
    color: #fff;
    color-scheme: dark;
    font: inherit;
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.au-form textarea.form-control { height: auto; min-height: 130px; resize: vertical; line-height: 1.5; }
.au-form .form-control:focus {
    border-color: #fff;
    outline: 0;
    background: rgba(255, 255, 255, .13);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .16);
    color: #fff;
}
.au-form .form-control::placeholder { color: rgba(255, 255, 255, .6); }
/* Chrome to nen o nhap da tu dien thanh mau sang, chu trang se khong doc duoc. */
.au-form .form-control:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    box-shadow: 0 0 0 1000px #17171a inset;
    transition: background-color 9999s;
}

.au-form .btn-primary {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow .25s ease, background-color .2s ease, transform .2s var(--ld-ease);
}
.au-form .btn-primary:hover, .au-form .btn-primary:focus {
    background: #fff;
    color: #000;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .22);
}
.au-form .btn-primary:active { transform: scale(.98); background: #fff; color: #000; }
.au-form .btn-primary:disabled { background: rgba(255, 255, 255, .7); color: #000; opacity: 1; cursor: progress; }
.au-form .btn-outline-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(0, 0, 0, .3);
    color: #fff !important;
    font-size: 15px;
    font-weight: 500;
}
.au-form .btn-outline-secondary:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }

.au-form .text-center, .au-form .text-muted { color: rgba(255, 255, 255, .78) !important; font-size: 14px; text-align: center !important; }
.au-form .col-sm-12 { padding: 0; }
.ld-body .au-form .text-info { color: #fff !important; font-weight: 500; }
.ld-body .au-form .text-info b { font-weight: 500; }
.ld-body .au-form .text-info:hover { text-decoration: underline; }

.au-form .cv-ux-error { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: #fca5a5; }
.au-form .alert { margin: 0 0 16px; border-radius: 8px; font-size: 14px; }
.au-form .form-control:focus-visible { outline: 0; }

/* Khung bao da gui yeu cau ho tro */
.au-done { margin-top: 8px; text-align: center; }
.au-done p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .76); }
.au-done strong { font-weight: 500; color: #fff; }
.au-trap { position: absolute; left: -10000px; }

@media (max-width: 639px) {
    .ld-body .au-form h1 { font-size: 28px; }
    .au-form .card { padding: 24px !important; }
}

/* --- Dang nhap quan tri (admin/auth.tpl, 14/11/2026) --------------------------
   Cung khung voi trang dang nhap cua khach; khac: thanh tren chi co logo + nhan
   "Quan tri" + link ve trang chu (khong co menu ban hang), nen la anh tinh. */
.au-admin .ld-nav-left { gap: 14px; }
.au-admin-tag {
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .8);
}
.au-admin .au-form .card > .text-muted { margin: 0 0 20px; }
.au-admin .au-form #twofa_code { height: 54px; }
.au-admin .au-form .row { margin: 0; }
.au-admin-foot {
    position: relative;
    z-index: 1;
    margin-top: -44px;          /* nam trong le duoi cua .au-main: khong sinh thanh cuon */
    padding: 0 24px 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

/* --- Thong bao noi (toastr rut gon trong js/auth-lite.js, 15/11/2026) -------
   Trang dang nhap khong con nap app.min.js/toastr: thong bao loi may chu (vd dang
   nhap quan tri) hien o goc tren ben phai, tu tat sau 6 giay, bam de dong. */
.cv-toasts {
    position: fixed;
    top: 72px;                  /* duoi thanh dieu huong, khong che link EN / Trang chu */
    right: 16px;
    left: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}
.cv-toast {
    max-width: 360px;
    padding: 10px 14px;
    border: 1px solid var(--ld-line);
    border-left: 3px solid var(--ld-text-2);
    border-radius: 10px;
    background: var(--ld-surface, rgba(3, 5, 16, .92));
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    pointer-events: auto;
    cursor: pointer;
    animation: ldUp .25s ease both;
}
.cv-toast-error { border-left-color: var(--ld-bad); }
.cv-toast-success { border-left-color: var(--ld-ok); }

/* ==========================================================================
   UI-U2 BEGIN (21/11/2026) — dang nhap / dang ky:
   1) "Quen mat khau?" nam ngay duoi o mat khau
   2) dong dong y dieu khoan duoi nut tao tai khoan
   ========================================================================== */
.au-form .au-forgot { margin-top: 8px; font-size: 14px; text-align: right; }
.ld-body .au-form .au-forgot a,
.ld-body .au-form .au-terms a {
    color: #fff;
    font-weight: 500;
    text-decoration: underline !important;   /* app.min.css: a { text-decoration: none !important } */
    text-decoration-color: rgba(255, 255, 255, .6);
    text-underline-offset: 3px;
}
.au-form .au-terms a { white-space: nowrap; }
.ld-body .au-form .au-forgot a:hover,
.ld-body .au-form .au-terms a:hover { text-decoration-color: #fff; }
.au-form .au-terms {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
    color: rgba(255, 255, 255, .78);
    text-wrap: balance;
}
/* UI-U2 END */
/* UI-U5 BEGIN (21/11/2026): nut dang nhap lun .97 nhu moi nut khac. */
.au-form .btn-primary:active { transform: scale(.97); }
/* UI-U5 END */
/* FORMOP-20261123 BEGIN: the form duc hon tren nen qua cau. */
.au-form .card { background: rgba(10, 11, 16, .965); }
/* FORMOP-20261123 END */
/* FORMGLASS-20261123 BEGIN: the form kinh mo + khoang trong duoi. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .au-form .card {
        background: rgba(12, 14, 22, .55);
        -webkit-backdrop-filter: blur(18px) saturate(1.25);
                backdrop-filter: blur(18px) saturate(1.25);
    }
}
.ld-body #cv-main.au-main { padding-bottom: 120px; isolation: auto; }
@media (max-width: 639px) { .ld-body #cv-main.au-main { padding-bottom: 88px; } }
/* hieu ung hien len cua form khong giu lai sau khi chay (giu lai thi kinh mo khong thay nen) */
.au-form { animation-fill-mode: backwards; }
/* FORMGLASS-20261123 END */
/* FORMGLASS2-20261123 BEGIN: hieu ung hien len dat tren the (kinh mo co ngay tu dau). */
.au-form { animation: none; }
.au-form .card { animation: ldUp .8s ease .2s backwards; }
@media (prefers-reduced-motion: reduce) { .au-form .card { animation: none; } }
/* FORMGLASS2-20261123 END */
