/* =============================================================================
   Mẫu đăng nhập 24 - Giáng sinh: đi cặp landing page27. Đêm thông xanh thẫm có
   tuyết rơi, thiệp trắng viền đỏ thắt nơ chứa form; bên phải cây thông treo quả
   châu, hộp quà, thiệp đơn mẫu, số liệu vàng kim. Prefix nx-
   ============================================================================= */

.au-t24 {
    --nx-night: #0e2a22;
    --nx-night-2: #143528;
    --nx-pine: #1d5c43;
    --nx-green: #1f6b4a;
    --nx-green-d: #175238;
    --nx-paper: #f7f4ec;
    --nx-card: #fffdf7;
    --nx-ink: #22322b;
    --nx-muted: #64736b;
    --nx-red: #c44338;
    --nx-red-d: #a33329;
    --nx-gold: #e2ab4d;
    --nx-gold-d: #c4883a;
    --nx-gold-l: #f6e3b8;
    --nx-on-night: #cfdcd2;
    --nx-line: #e4ddcd;
    --nx-display: "Lora", Georgia, "Times New Roman", serif;
    --nx-script: "Dancing Script", "Lora", cursive;
    --nx-ease: cubic-bezier(.2, .8, .2, 1);
    --nx-gutter: clamp(16px, 4vw, 40px);

    --au-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --au-bg: var(--nx-night);
    --au-ink: var(--nx-ink);
    --au-muted: var(--nx-muted);
    --au-label: var(--nx-ink);
    --au-soft: #efe9da;

    --au-input-bg: #fff;
    --au-input-bw: 1.5px;
    --au-input-border: #d8d1c0;
    --au-input-border-hover: var(--nx-green);
    --au-input-focus: var(--nx-green);
    --au-autofill: #f4f8f2;
    --au-ring: rgba(31, 107, 74, .16);
    --au-placeholder: #9aa49d;
    --au-ic: #8a9089;
    --au-radius: 14px;
    --au-gap: 16px;

    --au-primary: var(--nx-red);
    --au-primary-ink: #fff;
    --au-btn-bg: linear-gradient(180deg, #d4544a, var(--nx-red) 55%);
    --au-btn-h: 50px;
    --au-btn-radius: 999px;
    --au-btn-shadow: 0 12px 24px -10px rgba(196, 67, 56, .65);
    --au-link: var(--nx-green-d);

    --au-tabs-bg: #efe9da;
    --au-tabs-ink: var(--nx-muted);
    --au-tabs-active-bg: #fff;
    --au-tabs-active-ink: var(--nx-ink);
    --au-tabs-active-shadow: 0 1px 2px rgba(34, 50, 43, .1), 0 2px 8px -2px rgba(34, 50, 43, .12);

    --au-pop-bg: #fff;
    --au-pop-ink: var(--nx-ink);
    --au-pop-border: var(--nx-line);
    --au-danger: var(--nx-red-d);
    --au-ok: var(--nx-green);

    background:
        radial-gradient(1100px 540px at 80% -10%, rgba(32, 90, 66, .55), transparent 65%),
        radial-gradient(900px 480px at 5% 110%, rgba(23, 68, 50, .6), transparent 60%),
        var(--nx-night);
}
.au-t24 ::selection { background: var(--nx-gold); color: var(--nx-night); }

.nx-wrap {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--nx-gutter);
}

.nx-page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

/* ---------- Tuyết rơi: 14 bông đặt sẵn, chỉ transform/opacity ---------- */
.nx-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.nx-sky i {
    position: absolute;
    top: -4%;
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, rgba(234, 246, 248, .75));
    box-shadow: 0 0 6px rgba(255, 255, 255, .5);
    opacity: .7;
    animation: nx-fall 12s linear infinite;
    will-change: transform;
}
@keyframes nx-fall {
    0% { transform: translate3d(0, -4vh, 0); }
    100% { transform: translate3d(34px, 110vh, 0); }
}
.nx-sky i:nth-child(1) { left: 4%; animation-delay: -2s; }
.nx-sky i:nth-child(2) { left: 12%; width: 4px; height: 4px; animation-delay: -7s; animation-duration: 15s; }
.nx-sky i:nth-child(3) { left: 21%; animation-delay: -11s; }
.nx-sky i:nth-child(4) { left: 28%; width: 8px; height: 8px; animation-delay: -4s; animation-duration: 10s; }
.nx-sky i:nth-child(5) { left: 37%; width: 4px; height: 4px; animation-delay: -9s; animation-duration: 16s; }
.nx-sky i:nth-child(6) { left: 45%; animation-delay: -1s; }
.nx-sky i:nth-child(7) { left: 52%; width: 5px; height: 5px; animation-delay: -13s; animation-duration: 14s; }
.nx-sky i:nth-child(8) { left: 60%; animation-delay: -6s; }
.nx-sky i:nth-child(9) { left: 67%; width: 8px; height: 8px; animation-delay: -10s; animation-duration: 11s; }
.nx-sky i:nth-child(10) { left: 74%; width: 4px; height: 4px; animation-delay: -3s; animation-duration: 17s; }
.nx-sky i:nth-child(11) { left: 81%; animation-delay: -8s; }
.nx-sky i:nth-child(12) { left: 88%; width: 5px; height: 5px; animation-delay: -12s; animation-duration: 13s; }
.nx-sky i:nth-child(13) { left: 94%; animation-delay: -5s; }
.nx-sky i:nth-child(14) { left: 98%; width: 4px; height: 4px; animation-delay: -14s; animation-duration: 15s; }

/* ---------- Đầu trang ---------- */
.nx-top { position: relative; z-index: 2; flex: none; }
.nx-top__bar {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 76px;
}
.au-t24 .au-brand { margin-right: auto; color: #fff; }
.au-t24 .au-brand__mark {
    border-radius: 12px;
    background: linear-gradient(160deg, var(--nx-pine), var(--nx-green-d));
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18);
}
.au-t24 .au-brand__name { font-family: var(--nx-display); font-size: 19px; }
.au-t24 .au-brand__logo { max-height: 42px; }

.nx-top__note {
    display: none;
    align-items: center;
    gap: 26px;
    margin: 0;
    color: var(--nx-on-night);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}
.nx-top__note span { display: inline-flex; align-items: center; gap: 9px; }
.nx-top__note i {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--nx-gold);
    box-shadow: 0 0 8px 1px rgba(226, 171, 77, .7);
}
@media (min-width: 768px) {
    .nx-top__note { display: inline-flex; }
}
.nx-top .lang-picker-row { width: auto; padding: 0; }

/* ---------- Khối chính ---------- */
.nx-main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    padding-block: 10px clamp(26px, 4vh, 44px);
}
.nx-sheet {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 4.5vw, 72px);
    align-items: center;
    max-width: 560px;
    margin-inline: auto;
}
@media (min-width: 1024px) {
    .nx-sheet { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); max-width: none; }
}

/* ---------- Thiệp form ---------- */
.nx-panel {
    position: relative;
    min-width: 0;
    border: 1.5px solid var(--nx-line);
    border-top: 5px solid var(--nx-red);
    border-radius: 26px;
    background: var(--nx-card);
    box-shadow: 0 30px 60px -28px rgba(4, 16, 12, .8);
}
/* Nơ đỏ trên mép thiệp */
.nx-panel__bow {
    position: absolute;
    left: 50%;
    top: -19px;
    z-index: 2;
    width: 0;
    pointer-events: none;
}
.nx-panel__bow i {
    position: absolute;
    left: -34px;
    top: 0;
    display: block;
    width: 68px;
    height: 30px;
    background: var(--nx-red);
    clip-path: polygon(50% 50%, 0 0, 0 100%, 50% 50%, 100% 100%, 100% 0);
    filter: drop-shadow(0 6px 10px rgba(163, 51, 41, .4));
}
.nx-panel__bow i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--nx-red-d);
}
.nx-panel__in {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(28px, 3.4vw, 42px) clamp(20px, 3vw, 38px) clamp(22px, 2.6vw, 30px);
    animation: nx-fade .45s ease both;
}
@keyframes nx-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    margin: 0 0 14px;
    padding: 7px 14px;
    border: 1px solid rgba(196, 136, 58, .45);
    border-radius: 999px;
    background: rgba(226, 171, 77, .14);
    color: #8a6424;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.nx-eyebrow svg { width: 14px; height: 14px; color: var(--nx-gold-d); }
.nx-title {
    margin: 0;
    color: var(--nx-ink);
    font-family: var(--nx-display);
    font-size: clamp(30px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.01em;
}
.nx-script {
    font-family: var(--nx-script);
    font-style: normal;
    font-weight: 700;
    font-size: 1.18em;
    color: var(--nx-red);
}
.nx-sub { margin: 12px 0 0; color: var(--nx-muted); font-size: 15px; line-height: 1.65; }
.nx-sub b { color: var(--nx-ink); }

/* ---------- Minh hoạ bên phải ---------- */
.nx-show { display: none; margin: 0; min-width: 0; }
@media (min-width: 1024px) {
    .nx-show { display: block; }
}
.nx-stage { position: relative; min-height: 380px; }

.nx-tree {
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 300px;
    height: 370px;
    transform: translateX(-50%);
}
.nx-tree__star {
    position: absolute;
    left: 50%;
    top: 0;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    background: var(--nx-gold);
    clip-path: polygon(50% 0, 63% 36%, 100% 38%, 70% 60%, 82% 100%, 50% 75%, 18% 100%, 30% 60%, 0 38%, 37% 36%);
    filter: drop-shadow(0 0 14px rgba(226, 171, 77, .75));
    animation: nx-star 3.4s ease-in-out infinite;
}
@keyframes nx-star {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(8deg); }
}
.nx-tree__tier {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #2a7a54, var(--nx-pine) 70%);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    filter: drop-shadow(0 10px 18px rgba(4, 16, 12, .45));
}
.nx-tree__tier--1 { top: 34px; width: 148px; height: 108px; z-index: 3; }
.nx-tree__tier--2 { top: 104px; width: 210px; height: 130px; z-index: 2; }
.nx-tree__tier--3 { top: 186px; width: 280px; height: 156px; z-index: 1; }
.nx-tree__trunk {
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 38px;
    height: 32px;
    margin-left: -19px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, #6d4a2e, #553922);
}
.nx-bauble {
    position: absolute;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    box-shadow: inset 0 -5px 8px rgba(0, 0, 0, .22), inset 0 4px 6px rgba(255, 255, 255, .3), 0 8px 16px -6px rgba(4, 16, 12, .6);
    animation: nx-sway 4.6s ease-in-out infinite;
    transform-origin: 50% -14px;
}
.nx-bauble svg { width: 19px; height: 19px; }
.nx-bauble::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -13px;
    width: 2px;
    height: 13px;
    margin-left: -1px;
    background: rgba(255, 255, 255, .55);
}
.nx-bauble::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -4px;
    width: 10px;
    height: 5px;
    margin-left: -5px;
    border-radius: 3px 3px 0 0;
    background: var(--nx-gold);
}
@keyframes nx-sway {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}
.nx-bauble--1 { left: 40%; top: 96px; background: var(--nx-red); }
.nx-bauble--2 { left: 20%; top: 190px; background: var(--nx-gold-d); animation-delay: .7s; }
.nx-bauble--3 { left: 62%; top: 250px; background: var(--nx-green); animation-delay: 1.4s; }

.nx-gift {
    position: absolute;
    bottom: 2px;
    z-index: 2;
    display: block;
    border-radius: 7px;
}
.nx-gift::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 9px;
    margin-left: -4.5px;
    background: rgba(255, 255, 255, .85);
}
.nx-gift::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 20px;
    height: 9px;
    margin-left: -10px;
    border-radius: 50% 50% 0 0;
    background: rgba(255, 255, 255, .85);
}
.nx-gift--1 { left: 6%; width: 56px; height: 44px; background: var(--nx-red); }
.nx-gift--2 { right: 8%; width: 46px; height: 38px; background: var(--nx-gold); }
.nx-drift {
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: -10px;
    z-index: 0;
    display: block;
    height: 40px;
    border-radius: 50%;
    background: rgba(243, 248, 246, .14);
}

/* Thiệp đơn mẫu nổi */
.nx-card {
    position: absolute;
    right: 0;
    top: 16%;
    z-index: 5;
    display: grid;
    gap: 11px;
    width: 216px;
    padding: 15px 15px 13px;
    border-radius: 16px;
    background: var(--nx-card);
    color: var(--nx-ink);
    box-shadow: 0 24px 48px -18px rgba(4, 16, 12, .65);
    animation: nx-float 7s ease-in-out infinite;
}
@keyframes nx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.nx-card__head { display: flex; align-items: center; gap: 10px; }
.nx-card__ic {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #fdeceb;
    color: var(--nx-red);
}
.nx-card__ic svg { width: 17px; height: 17px; }
.nx-card__head b { display: block; font-size: 13.5px; line-height: 1.3; }
.nx-card__head small { color: var(--nx-muted); font-size: 11.5px; }
.nx-card__bar {
    display: block;
    height: 7px;
    border-radius: 99px;
    background: #ece6d8;
    overflow: hidden;
}
.nx-card__bar i {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--nx-green), #35936a);
    transform-origin: 0 50%;
    animation: nx-progress 2.8s var(--nx-ease) infinite;
}
@keyframes nx-progress {
    0% { transform: scaleX(.25); }
    65%, 100% { transform: scaleX(1); }
}

/* Ba bước (trang đăng ký) */
.nx-steps {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.nx-step {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
}
.nx-step__no {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--nx-red);
    color: #fff;
    font-family: var(--nx-display);
    font-size: 15px;
    font-weight: 700;
}
.nx-step:nth-child(2) .nx-step__no { background: var(--nx-green); }
.nx-step:nth-child(3) .nx-step__no { background: var(--nx-gold-d); }
.nx-step__txt b { display: block; color: #fff; font-size: 14px; line-height: 1.3; }
.nx-step__txt small { color: var(--nx-on-night); font-size: 12.5px; }

/* Số liệu */
.nx-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px clamp(24px, 3vw, 48px);
    margin: 28px 0 0;
}
.nx-fact dt {
    margin: 0;
    color: var(--nx-gold);
    font-family: var(--nx-display);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
}
.nx-fact dd { margin: 3px 0 0; color: var(--nx-on-night); font-size: 13.5px; }
.nx-note { margin: 18px 0 0; color: rgba(207, 220, 210, .5); font-size: 12px; }

/* ---------- Chân trang ---------- */
.nx-foot {
    position: relative;
    z-index: 2;
    flex: none;
    padding: 14px 0;
}
.nx-foot__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--nx-on-night);
    font-size: 13px;
}
.nx-foot__lights { display: inline-flex; gap: 7px; }
.nx-foot__lights i {
    display: block;
    width: 8px;
    height: 10px;
    border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
    animation: nx-twinkle 2.6s ease-in-out infinite;
}
.nx-foot__lights i:nth-child(1) { background: var(--nx-gold); }
.nx-foot__lights i:nth-child(2) { background: #d95c51; animation-delay: .6s; }
.nx-foot__lights i:nth-child(3) { background: #cfe6ea; animation-delay: 1.2s; }
.nx-foot__lights i:nth-child(4) { background: #58a877; animation-delay: 1.8s; }
@keyframes nx-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.au-t24 .auth-footer__inner {
    position: relative;
    z-index: 2;
    max-width: none;
    padding: 12px max(var(--nx-gutter), calc((100% - 1240px) / 2 + var(--nx-gutter)));
    border-top: 1px solid rgba(207, 220, 210, .2);
    color: var(--nx-on-night);
    font-size: 12.5px;
}
.au-t24 .auth-footer__links a { color: var(--nx-gold); }
.au-t24 .auth-footer__links a:hover { color: #fff; }

/* ---------- Chọn ngôn ngữ (menu bị JS chuyển ra body) ---------- */
.au-t24 .lang-picker,
.au-t24 .lp-menu {
    --lp-bg: #fffdf7;
    --lp-border: #e4ddcd;
    --lp-ink: #22322b;
    --lp-ink-2: #3a4a42;
    --lp-muted: #64736b;
    --lp-hover: #f0ead9;
    --lp-primary: #1f6b4a;
    --lp-primary-soft: rgba(31, 107, 74, .12);
    font-family: var(--au-font);
}
.au-t24 .lang-picker .lp-btn {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .07);
    color: #fff;
}
.au-t24 .lang-picker .lp-btn:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Riêng cho form trên thiệp sáng ---------- */
.au-t24 .au-try { background: var(--nx-gold-l); color: #6d5324; }
.au-t24 .au-try svg { color: var(--nx-gold-d); }
.au-t24 .au-chip-btn { border-color: #cbbf9e; background: #f3edd9; color: var(--nx-green-d); }
.au-t24 .au-chip-btn:hover { background: #e9e0c4; }

@media (max-width: 575.98px) {
    .nx-top__bar { height: 64px; }
    .nx-panel__in { padding: 24px 18px 20px; }
    .nx-title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .nx-sky { display: none; }
    .nx-tree__star,
    .nx-bauble,
    .nx-card,
    .nx-card__bar i,
    .nx-foot__lights i { animation: none !important; }
}
