@font-face {
    font-family: "Estedad";
    src: url("/Content/assets/fonts/estedad.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    /* The cinematic page background stays dark in both themes. */
    --vs-bg: #030d20;
    --vs-bg-deep: #061a3a;
    --vs-card: rgba(255, 255, 255, .97);
    --vs-card-solid: #ffffff;
    --vs-card-border: rgba(105, 146, 205, .32);
    --vs-text: #102044;
    --vs-muted: #6e7890;
    --vs-soft: #f7f9fd;
    --vs-input: #fbfcff;
    --vs-input-border: #d8dfeb;
    --vs-line: #e7ecf4;
    --vs-primary: #1567f2;
    --vs-primary-2: #2d7cff;
    --vs-primary-soft: rgba(21, 103, 242, .11);
    --vs-primary-shadow: rgba(21, 103, 242, .26);
    --vs-success: #0d9b67;
    --vs-danger: #dc3545;
    --vs-switch: rgba(230, 241, 255, .82);
    --vs-shadow: 0 34px 94px rgba(0, 10, 31, .34), 0 0 0 1px rgba(109, 167, 255, .06);
    --vs-overlay: rgba(5, 20, 47, .68);
}

html[data-vs-theme="dark"] {
    color-scheme: dark;
    --vs-bg: #030d20;
    --vs-bg-deep: #061a3a;
    --vs-card: rgba(9, 25, 51, .96);
    --vs-card-solid: #0b1c38;
    --vs-card-border: rgba(93, 145, 231, .34);
    --vs-text: #f3f7ff;
    --vs-muted: #9aa9c2;
    --vs-soft: #102544;
    --vs-input: #0e2342;
    --vs-input-border: #294566;
    --vs-line: #213b5f;
    --vs-primary: #2e7cff;
    --vs-primary-2: #4890ff;
    --vs-primary-soft: rgba(46, 124, 255, .15);
    --vs-primary-shadow: rgba(27, 104, 242, .34);
    --vs-success: #35d39a;
    --vs-danger: #ff6675;
    --vs-switch: rgba(236, 244, 255, .88);
    --vs-shadow: 0 38px 110px rgba(0, 0, 0, .48);
    --vs-overlay: rgba(0, 6, 18, .78);
}

html,
body.vs-auth-body {
    width: 100%;
    min-width: 0;
    min-height: 100%;
}

body.vs-auth-body {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 28px clamp(20px, 3.5vw, 64px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    font-family: "Estedad", "Vazir", Tahoma, sans-serif;
    font-feature-settings: "ss01";
    color: var(--vs-text);
    background-color: var(--vs-bg-deep);
    background-image: none;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transition: background .28s ease, color .28s ease;
}

body.vs-auth-body::before {
    display: none;
}

body.vs-auth-body *,
body.vs-auth-body *::before,
body.vs-auth-body *::after {
    box-sizing: border-box;
}

body.vs-auth-body button,
body.vs-auth-body input {
    font: inherit;
}

body.vs-auth-body button:focus-visible,
body.vs-auth-body input:focus-visible {
    outline: 3px solid rgba(45, 124, 255, .32);
    outline-offset: 2px;
}

.vs-theme-toggle {
    position: fixed;
    top: clamp(18px, 3vw, 42px);
    left: clamp(18px, 3.4vw, 56px);
    z-index: 50;
    width: 116px;
    height: 48px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    direction: ltr;
    border: 1px solid rgba(112, 161, 226, .28);
    border-radius: 999px;
    color: var(--vs-switch);
    background: rgba(7, 30, 67, .56);
    box-shadow: 0 12px 30px rgba(3, 18, 43, .24), inset 0 1px rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease;
}

.vs-theme-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 160, 255, .62);
}

.vs-theme-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: color .22s ease, background .22s ease, box-shadow .22s ease;
}

html[data-vs-theme="light"] .vs-theme-sun,
html[data-vs-theme="dark"] .vs-theme-moon {
    color: #fff;
    background: linear-gradient(145deg, #2c80ff, #1260e8);
    box-shadow: 0 6px 16px rgba(18, 96, 232, .35);
}

.vs-auth-shell {
    width: min(1440px, 100%);
    height: 100%;
    margin: 0 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(540px, 1fr) minmax(430px, 500px);
    gap: clamp(34px, 5vw, 82px);
    align-items: center;
    direction: ltr;
}

.vs-auth-visual,
.vs-auth-card {
    direction: rtl;
}

.vs-auth-visual {
    position: relative;
    width: 100%;
    min-height: 100%;
    overflow: visible;
    color: #fff;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
}

.vs-auth-visual::before {
    content: "";
    position: absolute;
    inset: 3% -8% 12% -10%;
    z-index: -2;
    border-radius: 46%;
    opacity: .95;
    background:
        radial-gradient(circle at 46% 42%, rgba(26, 118, 255, .42), transparent 34%),
        radial-gradient(circle at 68% 58%, rgba(0, 182, 255, .22), transparent 38%),
        radial-gradient(circle at 20% 45%, rgba(19, 89, 220, .25), transparent 42%);
    filter: blur(20px);
}

.vs-auth-visual::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -4%;
    bottom: 180px;
    height: 190px;
    z-index: -1;
    opacity: .55;
    transform: perspective(500px) rotateX(65deg);
    transform-origin: bottom;
    background-image:
        linear-gradient(rgba(51, 146, 255, .32) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 146, 255, .32) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to top, #000, transparent);
}

.vs-auth-visual::before,
.vs-auth-visual::after {
    display: none;
}

/* Keep the desktop grid column as a spacer, but never paint or blur it. */
.vs-auth-visual {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 1 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mix-blend-mode: normal !important;
}

.vs-stream-stage {
    position: relative;
    width: min(750px, 92%);
    aspect-ratio: 1.2;
    margin: 22px auto 0;
}

.vs-player-frame {
    position: absolute;
    inset: 80px 5% 68px 13%;
    overflow: hidden;
    border: 2px solid rgba(128, 197, 255, .88);
    border-radius: 24px;
    background:
        radial-gradient(circle at 55% 48%, rgba(10, 112, 255, .30), transparent 28%),
        linear-gradient(135deg, rgba(44, 120, 226, .33), rgba(1, 27, 70, .88));
    box-shadow:
        0 0 0 8px rgba(48, 134, 255, .08),
        0 0 42px rgba(34, 140, 255, .50),
        inset 0 0 45px rgba(72, 158, 255, .17);
    transform: perspective(1000px) rotateY(-7deg) rotateX(1deg);
    transform-origin: left center;
}

.vs-player-frame::before,
.vs-player-frame::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.vs-player-frame::before {
    inset: 0;
    opacity: .78;
    background:
        radial-gradient(circle at 18% 32%, #32b3ff 0 1px, transparent 2px),
        radial-gradient(circle at 70% 40%, #56cfff 0 1px, transparent 2px),
        radial-gradient(circle at 85% 70%, #1b79ff 0 1px, transparent 2px),
        linear-gradient(115deg, rgba(255, 255, 255, .17), transparent 27%);
    background-size: 38px 38px, 51px 51px, 65px 65px, 100% 100%;
}

.vs-player-frame::after {
    left: 5%;
    right: 5%;
    top: 50%;
    height: 2px;
    opacity: .78;
    background: linear-gradient(90deg, transparent, #2ac8ff 18%, #63e4ff 52%, #2585ff 82%, transparent);
    box-shadow: 0 0 18px #26afff, 0 16px 36px #1479ff, 0 -14px 30px #1dbbff;
}

.vs-player-grid {
    position: absolute;
    inset: 0;
    opacity: .23;
    background-image:
        linear-gradient(rgba(60, 148, 255, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 148, 255, .22) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(circle at 50% 50%, #000, transparent 82%);
}

.vs-player-wave {
    position: absolute;
    left: 0;
    right: 0;
    top: 44%;
    height: 82px;
    opacity: .72;
    background:
        radial-gradient(ellipse at 8% 50%, transparent 38%, rgba(49, 190, 255, .75) 40% 41%, transparent 43%),
        radial-gradient(ellipse at 34% 50%, transparent 37%, rgba(49, 190, 255, .72) 39% 40%, transparent 42%),
        radial-gradient(ellipse at 62% 50%, transparent 36%, rgba(49, 190, 255, .68) 38% 39%, transparent 41%),
        radial-gradient(ellipse at 90% 50%, transparent 35%, rgba(49, 190, 255, .70) 37% 38%, transparent 40%);
}

.vs-play-button {
    position: absolute;
    top: 42%;
    left: 50%;
    z-index: 4;
    width: 126px;
    height: 126px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8f5ff;
    border: 1px solid rgba(105, 192, 255, .88);
    border-radius: 50%;
    background: rgba(6, 61, 132, .32);
    box-shadow: 0 0 42px rgba(30, 143, 255, .42), inset 0 0 28px rgba(107, 196, 255, .12);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(7px);
}

.vs-play-button i {
    margin-left: 7px;
    font-size: 48px;
    filter: drop-shadow(0 0 14px rgba(139, 214, 255, .72));
}

.vs-player-controls {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 24px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #dff3ff;
    font-size: 13px;
    direction: ltr;
}

.vs-progress {
    position: relative;
    height: 5px;
    flex: 1;
    overflow: visible;
    border-radius: 999px;
    background: rgba(140, 203, 255, .30);
}

.vs-progress b {
    position: absolute;
    inset: 0 32% 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f78ff, #6edbff);
    box-shadow: 0 0 13px #33a9ff;
}

.vs-progress b::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9f6ff;
    box-shadow: 0 0 12px #40b9ff;
    transform: translateY(-50%);
}

.vs-live-pill {
    padding: 3px 8px;
    border-radius: 7px;
    color: #fff;
    background: #176df5;
    font-size: 9px;
    font-weight: 900;
}

.vs-quality-badge {
    position: absolute;
    z-index: 7;
    min-width: 86px;
    min-height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #eaf8ff;
    border: 1px solid rgba(95, 184, 255, .76);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(28, 108, 221, .76), rgba(3, 43, 101, .86));
    box-shadow: 0 0 24px rgba(30, 137, 255, .42), inset 0 0 18px rgba(108, 203, 255, .13);
    backdrop-filter: blur(8px);
    direction: ltr;
}

.vs-quality-badge strong {
    line-height: 1;
    font-size: 23px;
    font-weight: 800;
}

.vs-quality-badge small {
    margin-top: 7px;
    font-size: 10px;
    letter-spacing: .6px;
}

.vs-badge-fhd {
    left: 0;
    top: 118px;
}

.vs-badge-4k {
    left: -5%;
    top: 245px;
    color: #fff;
    border-color: #5cdaff;
    background: linear-gradient(145deg, rgba(18, 142, 255, .90), rgba(6, 57, 147, .90));
}

.vs-badge-live {
    left: -3%;
    top: 372px;
    min-height: 52px;
    flex-direction: row;
    gap: 8px;
}

.vs-badge-live strong {
    font-size: 15px;
}

.vs-visual-shield {
    position: absolute;
    right: 7%;
    bottom: 29px;
    z-index: 8;
    width: 148px;
    height: 172px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eaf8ff;
    clip-path: polygon(50% 0, 92% 15%, 88% 67%, 50% 100%, 12% 67%, 8% 15%);
    background:
        linear-gradient(145deg, rgba(73, 168, 255, .78), rgba(6, 69, 170, .88));
    box-shadow: 0 0 48px rgba(37, 145, 255, .58);
}

.vs-visual-shield::before {
    content: "";
    position: absolute;
    inset: 9px;
    clip-path: inherit;
    border: 2px solid rgba(197, 237, 255, .85);
    background: linear-gradient(145deg, rgba(39, 124, 241, .72), rgba(0, 41, 111, .88));
}

.vs-visual-shield i {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d8f5ff;
    border-radius: 16px;
    color: #e8f8ff;
    font-size: 30px;
    background: linear-gradient(180deg, #248dff, #0758cb);
    box-shadow: 0 0 24px rgba(100, 202, 255, .75);
}

.vs-visual-content {
    position: relative;
    z-index: 10;
    width: min(680px, 88%);
    margin: 16px auto 0;
    text-align: center;
}

.vs-visual-content h1 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(32px, 3.6vw, 52px);
    font-weight: 900;
    line-height: 1.45;
    text-shadow: 0 8px 30px rgba(0, 24, 65, .55);
}

.vs-visual-content p {
    margin: 0;
    color: rgba(232, 243, 255, .90);
    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 400;
    line-height: 1.9;
}

.vs-auth-card {
    position: relative;
    width: 100%;
    min-width: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--vs-primary-soft) transparent;
    padding: 34px 36px 30px;
    border: 1px solid var(--vs-card-border);
    border-radius: 27px;
    color: var(--vs-text);
    background: var(--vs-card);
    box-shadow: var(--vs-shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: background .28s ease, color .28s ease, border-color .28s ease;
}

.vs-auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: .55;
    background: linear-gradient(145deg, rgba(255, 255, 255, .18), transparent 38%);
}

.vs-brand-lockup {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-bottom: 25px;
}

.vs-brand-lockup strong {
    color: var(--vs-text);
    font-size: 31px;
    font-weight: 900;
    letter-spacing: -.8px;
}

.vs-brand-logo-frame {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(24, 64, 120, .12);
}

.vs-brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.22);
}

.vs-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.vs-login-title h1 {
    margin: 0;
    color: var(--vs-text);
    font-size: 25px;
    font-weight: 850;
    line-height: 1.55;
}

.vs-login-title span {
    display: block;
    margin-top: 3px;
    color: var(--vs-muted);
    font-size: 12px;
    font-weight: 500;
}

.vs-secure-badge {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 17px;
    color: var(--vs-primary);
    background: var(--vs-primary-soft);
    font-size: 24px;
}

.vs-tab-panel {
    display: none;
}

.vs-tab-panel.active {
    display: block;
    animation: vsApprovedFade .24s ease both;
}

.vs-panel-caption {
    margin: -2px 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--vs-line);
    border-radius: 14px;
    background: var(--vs-soft);
}

.vs-panel-caption strong,
.vs-panel-caption span {
    display: block;
}

.vs-panel-caption strong {
    color: var(--vs-text);
    font-weight: 800;
}

.vs-panel-caption span {
    margin-top: 3px;
    color: var(--vs-muted);
    font-size: 11px;
}

.vs-field {
    margin-bottom: 17px;
}

.vs-field > label {
    display: block;
    margin: 0 0 8px;
    color: var(--vs-text);
    font-size: 13px;
    font-weight: 650;
}

.vs-input-wrap {
    position: relative;
    width: 100%;
    min-height: 57px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--vs-input-border);
    border-radius: 14px;
    color: var(--vs-muted);
    background: var(--vs-input);
    box-shadow: inset 0 1px 2px rgba(16, 43, 79, .03);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.vs-input-wrap:focus-within {
    border-color: var(--vs-primary);
    background: var(--vs-card-solid);
    box-shadow: 0 0 0 4px var(--vs-primary-soft);
}

.vs-input-wrap > i {
    width: 49px;
    flex: 0 0 49px;
    text-align: center;
    color: #9aa3b1;
    font-size: 17px;
}

.vs-input-wrap:focus-within > i {
    color: var(--vs-primary);
}

.vs-input {
    width: 100%;
    height: 55px;
    min-width: 0;
    padding: 0 2px 0 14px;
    border: 0;
    outline: 0;
    color: var(--vs-text);
    background: transparent;
    font-size: 13px;
    font-weight: 500;
}

.vs-input::placeholder {
    color: #9ba4b3;
    opacity: 1;
}

.vs-input[type="tel"] {
    direction: ltr !important;
    text-align: right !important;
    unicode-bidi: plaintext;
}

.vs-input[type="tel"]::placeholder {
    direction: ltr !important;
    text-align: right !important;
    unicode-bidi: isolate;
}

.vs-eye,
.vs-refresh {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    margin-left: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    color: #8c96a6;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.vs-eye:hover,
.vs-refresh:hover {
    color: var(--vs-primary);
    background: var(--vs-primary-soft);
}

.vs-captcha-box {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    margin-bottom: 17px;
}

.vs-captcha-question {
    min-height: 57px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid rgba(58, 133, 243, .28);
    border-radius: 14px;
    color: var(--vs-primary);
    background: var(--vs-primary-soft);
    font-size: 15px;
    font-weight: 800;
    direction: ltr;
}

.vs-form-row,
.vs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.vs-form-row {
    margin: 0 0 17px;
}

.vs-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--vs-text);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
}

.vs-check input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--vs-primary);
    cursor: pointer;
}

.vs-link-btn,
.vs-register-btn {
    padding: 3px;
    border: 0;
    color: var(--vs-primary);
    background: transparent;
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer;
}

.vs-link-btn:hover,
.vs-register-btn:hover {
    text-decoration: underline;
}

.vs-submit-btn,
.vs-mode-switch,
.vs-ghost-btn {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.vs-submit-btn {
    border: 1px solid transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--vs-primary-2), var(--vs-primary));
    box-shadow: 0 13px 28px var(--vs-primary-shadow);
}

.vs-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px var(--vs-primary-shadow);
}

.vs-submit-btn:disabled,
.vs-ghost-btn:disabled {
    opacity: .58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vs-submit-alt {
    background: linear-gradient(135deg, #2c83ff, #1263ec);
}

.vs-mode-switch {
    margin-top: 11px;
    border: 1.5px solid var(--vs-primary);
    color: var(--vs-primary);
    background: transparent;
}

.vs-mode-switch:hover {
    color: #fff;
    background: var(--vs-primary);
    box-shadow: 0 10px 24px var(--vs-primary-shadow);
}

.vs-password-switch {
    margin-top: 12px;
}

.vs-otp-remember {
    margin: -1px 0 16px;
}

.vs-otp-verify {
    display: none;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--vs-line);
}

.vs-otp-verify.active {
    display: block;
    animation: vsApprovedFade .24s ease both;
}

.vs-otp-status,
.vs-register-code-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px 14px;
    border: 1px solid rgba(42, 159, 117, .22);
    border-radius: 14px;
    color: var(--vs-text);
    background: rgba(21, 169, 117, .08);
}

.vs-otp-status strong,
.vs-otp-status span {
    display: block;
}

.vs-otp-status strong {
    font-size: 13px;
    font-weight: 750;
}

.vs-otp-status span {
    margin-top: 3px;
    color: var(--vs-muted);
    font-size: 11px;
}

.vs-otp-status b,
.vs-register-code-status b {
    color: var(--vs-success);
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
    direction: ltr;
}

.vs-otp-input-wrap .vs-input {
    direction: ltr;
    text-align: center;
    letter-spacing: 8px;
    font-size: 20px;
}

.vs-ghost-btn {
    margin-top: 9px;
    border: 1px solid var(--vs-input-border);
    color: var(--vs-text);
    background: var(--vs-card-solid);
}

.vs-ghost-btn:not(:disabled):hover {
    border-color: var(--vs-primary);
    color: var(--vs-primary);
}

.vs-otp-note {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--vs-line);
    border-radius: 12px;
    color: var(--vs-muted);
    background: var(--vs-soft);
    font-size: 10.5px;
    font-weight: 450;
    line-height: 1.85;
}

.vs-otp-note i {
    margin-left: 5px;
    color: var(--vs-primary);
}

.vs-card-footer {
    justify-content: center;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--vs-line);
    color: var(--vs-text);
    font-size: 12.5px;
}

.vs-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vs-modal.active {
    display: flex;
}

.vs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--vs-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.vs-modal-card {
    position: relative;
    z-index: 2;
    width: min(510px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 26px;
    border: 1px solid var(--vs-card-border);
    border-radius: 24px;
    color: var(--vs-text);
    background: var(--vs-card-solid);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
    animation: vsApprovedPop .22s ease both;
}

.vs-register-modal-card {
    width: min(590px, 100%);
}

.vs-modal-close {
    position: absolute;
    top: 17px;
    left: 17px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    color: var(--vs-muted);
    background: var(--vs-soft);
    cursor: pointer;
}

.vs-modal-close:hover {
    color: var(--vs-danger);
}

.vs-modal-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    padding-left: 44px;
}

.vs-modal-head > i {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--vs-primary-2), var(--vs-primary));
    box-shadow: 0 10px 24px var(--vs-primary-shadow);
}

.vs-modal-head h3 {
    margin: 0 0 4px;
    color: var(--vs-text);
    font-size: 19px;
    font-weight: 800;
}

.vs-modal-head p {
    margin: 0;
    color: var(--vs-muted);
    font-size: 11.5px;
    line-height: 1.75;
}

.vs-register-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 20px;
}

.vs-step-pill {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 9px;
    border: 1px solid var(--vs-line);
    border-radius: 11px;
    color: var(--vs-muted);
    background: var(--vs-soft);
    font-size: 10.5px;
    font-weight: 650;
    text-align: center;
}

.vs-step-pill.active {
    border-color: var(--vs-primary);
    color: var(--vs-primary);
    background: var(--vs-primary-soft);
}

.vs-step-pill.done {
    border-color: rgba(30, 172, 118, .28);
    color: var(--vs-success);
    background: rgba(30, 172, 118, .08);
}

.vs-register-step {
    display: none;
}

.vs-register-step.active {
    display: block;
    animation: vsApprovedFade .22s ease both;
}

.vs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vs-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    min-width: 280px;
    max-width: calc(100% - 48px);
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    color: #fff;
    background: #112443;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.75;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
}

.vs-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vs-toast-success {
    background: linear-gradient(135deg, #087d58, #0ba975);
}

.vs-toast-error {
    background: linear-gradient(135deg, #bd2635, #e34352);
}

@keyframes vsApprovedFade {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes vsApprovedPop {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 1181px) and (max-height: 900px) {
    body.vs-auth-body {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .vs-auth-card {
        padding: 23px 30px 21px;
    }

    .vs-brand-lockup {
        min-height: 58px;
        margin-bottom: 15px;
    }

    .vs-brand-logo-frame {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 17px;
    }

    .vs-brand-lockup strong {
        font-size: 27px;
    }

    .vs-card-head {
        margin-bottom: 16px;
    }

    .vs-login-title h1 {
        font-size: 22px;
    }

    .vs-secure-badge {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 21px;
    }

    .vs-field,
    .vs-captcha-box {
        margin-bottom: 12px;
    }

    .vs-input-wrap,
    .vs-captcha-question {
        min-height: 50px;
    }

    .vs-input {
        height: 48px;
    }

    .vs-submit-btn,
    .vs-mode-switch,
    .vs-ghost-btn {
        min-height: 50px;
    }

    .vs-form-row {
        margin-bottom: 13px;
    }

    .vs-card-footer {
        margin-top: 14px;
        padding-top: 12px;
    }
}

/* Load the optimized visual only on desktop; mobile never downloads it. */
@media (min-width: 1181px) {
    body.vs-auth-body {
        background-image: url("/Content/Login/image/bg-login.webp");
    }
}

@media (max-width: 1180px) {
    body.vs-auth-body {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 24px;
        overflow-x: hidden;
        overflow-y: auto;
        background-color: var(--vs-bg-deep);
        background-image: none;
    }

    .vs-auth-shell {
        width: min(560px, 100%);
        height: auto;
        min-height: calc(100dvh - 48px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vs-auth-visual {
        display: none;
    }

    .vs-auth-card {
        max-height: none;
        overflow: visible;
    }

    .vs-theme-toggle {
        top: 22px;
        left: 24px;
    }
}

@media (max-width: 640px) {
    body.vs-auth-body {
        display: block;
        padding: 0;
        color: var(--vs-text) !important;
        background: var(--vs-card-solid) !important;
    }

    body.vs-auth-body::before {
        display: none;
    }

    .vs-theme-toggle {
        position: absolute;
        top: 14px;
        left: 14px;
        width: 96px;
        height: 42px;
    }

    .vs-auth-shell {
        width: 100%;
        min-height: 100dvh;
        display: block;
    }

    html[data-vs-theme] body.vs-auth-body .vs-auth-card {
        width: 100%;
        min-height: 100dvh;
        padding: 72px 18px 28px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        color: var(--vs-text) !important;
        background: var(--vs-card-solid) !important;
    }

    html[data-vs-theme] body.vs-auth-body .vs-input-wrap {
        border-color: var(--vs-input-border) !important;
        color: var(--vs-muted) !important;
        background: var(--vs-input) !important;
    }

    html[data-vs-theme] body.vs-auth-body .vs-input-wrap:focus-within {
        border-color: var(--vs-primary) !important;
        background: var(--vs-card-solid) !important;
        box-shadow: 0 0 0 4px var(--vs-primary-soft) !important;
    }

    html[data-vs-theme] body.vs-auth-body .vs-input,
    html[data-vs-theme] body.vs-auth-body .vs-field > label,
    html[data-vs-theme] body.vs-auth-body .vs-brand-lockup strong,
    html[data-vs-theme] body.vs-auth-body .vs-login-title h1,
    html[data-vs-theme] body.vs-auth-body .vs-check,
    html[data-vs-theme] body.vs-auth-body .vs-card-footer {
        color: var(--vs-text) !important;
    }

    html[data-vs-theme] body.vs-auth-body .vs-login-title span,
    html[data-vs-theme] body.vs-auth-body .vs-input::placeholder {
        color: var(--vs-muted) !important;
        opacity: 1 !important;
    }

    html[data-vs-theme] body.vs-auth-body .vs-card-footer {
        border-color: var(--vs-line) !important;
    }

    .vs-brand-lockup {
        justify-content: flex-start;
        min-height: 58px;
        margin-bottom: 23px;
    }

    .vs-brand-logo-frame {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        border-radius: 16px;
    }

    .vs-brand-lockup strong {
        font-size: 25px;
    }

    .vs-card-head {
        gap: 12px;
    }

    .vs-login-title h1 {
        font-size: 21px;
    }

    .vs-login-title span {
        font-size: 10.5px;
    }

    .vs-secure-badge {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 20px;
    }

    .vs-input-wrap,
    .vs-captcha-question {
        min-height: 54px;
    }

    .vs-input {
        height: 52px;
    }

    .vs-captcha-box {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 7px;
    }

    .vs-captcha-question {
        font-size: 13px;
    }

    .vs-submit-btn,
    .vs-mode-switch,
    .vs-ghost-btn {
        min-height: 54px;
    }

    .vs-modal {
        align-items: flex-end;
        padding: 8px;
    }

    .vs-modal-card {
        width: 100%;
        max-height: calc(100dvh - 16px);
        padding: 22px 17px;
        border-radius: 23px 23px 14px 14px;
    }

    .vs-modal-head {
        padding-left: 36px;
    }

    .vs-two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vs-register-progress {
        gap: 5px;
    }

    .vs-step-pill {
        padding: 6px 4px;
        font-size: 9px;
    }

    .vs-toast {
        right: 12px;
        bottom: 12px;
        min-width: 0;
        max-width: calc(100% - 24px);
    }
}

@media (max-width: 360px) {
    .vs-captcha-box {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .vs-auth-card {
        padding-inline: 14px;
    }

    .vs-form-row {
        gap: 7px;
    }

    .vs-check,
    .vs-link-btn,
    .vs-register-btn,
    .vs-card-footer {
        font-size: 11.5px;
    }
}

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