/* Shared 2026 visual layer for public registration surfaces. */
@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/image/fonts/inter/inter-vietnamese-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/image/fonts/inter/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/image/fonts/inter/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
    --vneid-red: #9c1c24;
    --primary-color: #9c1c24;
    --primary-dark: #681016;
    --accent-color: #e2ae2a;
    --accent-dark: #b47b0b;
    --text-primary: #17202f;
    --text-secondary: #667184;
    --border-color: #dfe4ec;
    --success-color: #147d52;
    --surface: #ffffff;
    --surface-soft: #f6f7f9;
    --shadow-sm: 0 3px 12px rgba(20, 29, 45, .07);
    --shadow-md: 0 14px 38px rgba(20, 29, 45, .13);
    --shadow-lg: 0 30px 75px rgba(20, 29, 45, .2);
}

html { color-scheme: light; scrollbar-gutter: stable; }

body.guest-desktop-page,
body.guest-mobile-page,
body.guest-landing {
    font-family: "Inter Variable", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.guest-desktop-page *,
body.guest-mobile-page *,
body.guest-landing * { font-family: inherit; }

::selection { color: #fff; background: var(--primary-color); }

:where(button, a, input, select, textarea):focus-visible {
    outline: 3px solid rgba(37, 99, 169, .34) !important;
    outline-offset: 2px;
}

:where(button, input, select, textarea):disabled { cursor: not-allowed; opacity: .6; }

.skip-link {
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 100000;
    padding: 10px 14px;
    color: #fff;
    background: #17202f;
    border-radius: 9px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.ui-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Desktop registration */
body.guest-desktop-page {
    min-height: 100vh;
    padding: 36px 18px 54px;
    background:
        radial-gradient(circle at 10% 5%, rgba(226, 174, 42, .11), transparent 25rem),
        linear-gradient(180deg, #eef1f5 0%, #f7f8fa 34%, #eef1f5 100%);
}

.guest-desktop-page .guest-container {
    width: min(100%, 900px);
    margin: 0 auto;
}

.guest-desktop-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    margin-bottom: 18px;
    color: #4d5869;
    border: 1px solid #dce1e9;
    border-radius: 10px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 2px 7px rgba(23, 32, 47, .04);
    text-decoration: none;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.guest-desktop-page .back-link:hover {
    color: var(--primary-color);
    border-color: #d7b9bc;
    background: #fff;
}

.guest-desktop-page .guest-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 28px 28px 26px;
    color: #fff;
    text-align: left;
    background: linear-gradient(118deg, #691017 0%, #9c1c24 62%, #681016 100%);
    border: 1px solid rgba(226, 174, 42, .62);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(104, 16, 22, .18);
}

.guest-desktop-page .guest-header::after {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    right: -60px;
    top: -110px;
    background: url("/image/heritage-pattern.svg") center / contain no-repeat;
    opacity: .075;
    pointer-events: none;
}

.guest-desktop-page .guest-logo {
    width: 70px !important;
    height: 70px !important;
    margin: 0 0 14px !important;
}

.guest-desktop-page .guest-header h1 {
    position: relative;
    z-index: 1;
    max-width: 680px;
    color: #f7d778;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    font-weight: 760;
    letter-spacing: .035em;
    line-height: 1.25;
    text-transform: uppercase;
}

.guest-desktop-page .guest-header p,
.guest-desktop-page .guest-header h2 {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin-top: 7px;
    color: rgba(255, 255, 255, .85);
    font-size: .92rem;
    font-weight: 480;
    line-height: 1.55;
}

.guest-desktop-page .panel {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow-md);
}

.guest-desktop-page .panel-header {
    padding: 19px 24px !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: linear-gradient(180deg, #fff, #f8f9fb) !important;
}

.guest-desktop-page .panel-header :where(h2, h3) {
    color: #202a3a;
    font-size: 1.04rem;
    font-weight: 720;
    letter-spacing: -.01em;
}

.guest-desktop-page .panel-body { padding: 26px; }

.guest-desktop-page .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 20px;
}

.guest-desktop-page .form-group { margin: 0; }
.guest-desktop-page .form-group.full-width { grid-column: 1 / -1; }
.guest-desktop-page label {
    display: block;
    margin-bottom: 7px;
    color: #394456;
    font-size: .8rem;
    font-weight: 650;
}

.guest-desktop-page :where(input, select, textarea) {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: #17202f;
    background: #fff;
    border: 1px solid #cdd5e0;
    border-radius: 11px;
    font-size: 16px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.guest-desktop-page :where(input, select, textarea):hover { border-color: #aeb8c7; }
.guest-desktop-page :where(input, select, textarea):focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(156, 28, 36, .11);
}
.guest-desktop-page .company-code-input-wrap,
.guest-mobile-page .company-code-input-wrap { position: relative; }
.guest-desktop-page .company-code-input-wrap .ui-icon,
.guest-mobile-page .company-code-input-wrap .ui-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 1;
    width: 19px;
    height: 19px;
    color: #8f6420;
    transform: translateY(-50%);
    pointer-events: none;
}
.guest-desktop-page .company-code-input-wrap input,
.guest-mobile-page .company-code-input-wrap input {
    padding-left: 43px !important;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 720;
    letter-spacing: .1em;
}
.guest-desktop-page .company-code-field small,
.guest-mobile-page .company-code-field small {
    display: block;
    margin-top: 6px;
    color: #717b8c;
    font-size: .7rem;
    line-height: 1.4;
}
.guest-desktop-page .field-error,
.guest-mobile-page .field-error {
    min-height: 0;
    margin-top: 5px;
    color: #b4232e;
    font-size: .72rem;
    font-weight: 620;
    line-height: 1.4;
}
.guest-desktop-page .field-error:not(:empty),
.guest-mobile-page .field-error:not(:empty) {
    padding: 8px 10px;
    border: 1px solid #f1c5c8;
    border-radius: 8px;
    background: #fff3f3;
}

.guest-desktop-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 11px;
    font-weight: 670;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.guest-desktop-page .btn:not(:disabled):hover { transform: translateY(-1px); }
.guest-desktop-page .btn-primary {
    color: #fff;
    background: linear-gradient(115deg, var(--primary-color), #b52730) !important;
    border-color: var(--primary-color);
    box-shadow: 0 7px 17px rgba(156, 28, 36, .2);
}
.guest-desktop-page .btn-secondary {
    color: #3d4859;
    background: #fff;
    border: 1px solid #cfd6e1;
}
.guest-desktop-page .btn-large {
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
}

.guest-desktop-page #result-panel .panel-header {
    color: #fff;
    background: linear-gradient(115deg, #126744, #178457) !important;
    border-bottom-color: #126744 !important;
}
.guest-desktop-page #result-panel .panel-header :where(h2, h3) { color: #fff; }
.guest-desktop-page .notification-box {
    border-color: #b9e3d0 !important;
    border-radius: 14px !important;
    background: #effaf4 !important;
    box-shadow: none !important;
}

/* Mobile registration */
body.guest-mobile-page {
    background:
        radial-gradient(circle at 50% -10%, rgba(226, 174, 42, .18), transparent 27rem),
        #e9edf2;
}
.guest-mobile-page .phone-frame-wrapper { background: transparent; }
.guest-mobile-page .phone-device {
    border-color: #242935;
    box-shadow: 0 28px 70px rgba(23, 32, 47, .24);
}
.guest-mobile-page .phone-screen-content { background: #f4f6f9; }
.guest-mobile-page .m-header-guest {
    position: relative;
    overflow: hidden;
    background: linear-gradient(118deg, #6b1017, #9c1c24 64%, #681016);
    border-bottom: 1px solid rgba(226, 174, 42, .55);
}
.guest-mobile-page .m-header-guest::after {
    content: "";
    position: absolute;
    width: 165px;
    height: 165px;
    right: -54px;
    top: -68px;
    background: url("/image/heritage-pattern.svg") center / contain no-repeat;
    opacity: .08;
    pointer-events: none;
}
.guest-mobile-page .m-header-guest img {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .22));
}
.guest-mobile-page .m-header-guest :where(h2, h3) { position: relative; z-index: 1; }
.guest-mobile-page .m-body-padded {
    padding: 18px;
    background: linear-gradient(180deg, #f8f9fb, #f2f4f7);
}
.guest-mobile-page #m-register-form {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.guest-mobile-page .m-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #394456;
    font-size: .72rem;
    font-weight: 650;
}
.guest-mobile-page #m-register-form input {
    min-height: 47px;
    padding: 10px 12px;
    color: #17202f;
    background: #fff;
    border: 1px solid #cdd5e0;
    border-radius: 10px;
    font-size: 16px;
}
.guest-mobile-page #m-register-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(156, 28, 36, .11);
}
.guest-mobile-page :where(.m-btn, .floating-back-btn) {
    min-height: 43px;
    border-radius: 10px;
    font-weight: 660;
}
.guest-mobile-page .m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.guest-mobile-page .m-btn-primary {
    color: #fff;
    background: linear-gradient(115deg, var(--primary-color), #b52730) !important;
    border-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(156, 28, 36, .2);
}
.guest-mobile-page .m-btn .ui-icon { width: 19px; height: 19px; }
.guest-mobile-page .success-wrapper-m {
    padding: 16px 12px !important;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.guest-mobile-page .vneid-id-card-m {
    border-width: 1px;
    border-color: #dfb84f;
    border-radius: 17px;
    box-shadow: var(--shadow-md);
}

/* Guest interface selector */
body.guest-landing {
    padding: 28px 16px;
    background:
        radial-gradient(circle at 16% 12%, rgba(226, 174, 42, .18), transparent 25rem),
        linear-gradient(132deg, #500b11 0%, #83141c 48%, #3d080c 100%);
}
body.guest-landing::before {
    background-image: url("/image/heritage-pattern.svg") !important;
    background-size: min(76vh, 680px) !important;
    opacity: .055 !important;
}
.guest-landing .container { max-width: 480px; }
.guest-landing .emblem-svg {
    width: 78px !important;
    height: 78px !important;
    animation: none;
}
.guest-landing h1 {
    font-size: clamp(1.28rem, 4vw, 1.58rem);
    line-height: 1.3;
    letter-spacing: .045em;
}
.guest-landing h2 { margin: 7px 0 24px; opacity: .88; }
.guest-landing .avatar-circle-wrapper { display: none; }
.guest-landing .card {
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, .66);
    border-radius: 22px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 28px 70px rgba(25, 0, 4, .32);
    backdrop-filter: blur(18px);
}
.guest-landing .selector-title {
    padding: 0 0 15px;
    margin-bottom: 15px;
    color: #263042;
    border-bottom: 1px solid #e5e8ee;
    font-size: .83rem;
    font-weight: 720;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.guest-landing #guest-conf-select {
    width: 100%;
    min-height: 49px;
    padding: 10px 12px;
    color: #263042;
    border: 1px solid #cdd5e0;
    border-radius: 11px;
    background: #fff;
    font-size: 16px;
}
.guest-landing .btn {
    min-height: 57px;
    gap: 10px;
    margin-bottom: 12px;
    border-radius: 13px;
    font-size: .92rem;
}
.guest-landing .btn-desktop {
    background: linear-gradient(115deg, var(--primary-color), #b52730);
    box-shadow: 0 8px 20px rgba(156, 28, 36, .22);
}
.guest-landing .btn-mobile { color: #681016; border-color: #d7a228; background: #fffaf0; }
.guest-landing .btn-icon { fill: none; stroke: currentColor; stroke-width: 2; }
.guest-landing .footer { margin-top: 20px; color: rgba(255, 255, 255, .72); }

@media (max-width: 720px) {
    .guest-desktop-page .form-grid { grid-template-columns: 1fr; }
    .guest-desktop-page .form-group.full-width { grid-column: auto; }
    .guest-desktop-page .guest-header { padding: 22px 20px; }
    .guest-desktop-page .panel-body { padding: 20px; }
}

@media (max-width: 768px) {
    .guest-mobile-page .phone-device {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
