@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../assets/fonts/montserrat-latin-ext.woff2') format('woff2');
    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: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
    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 {
    --color-primary: #009966;
    --color-primary-dark: #007a55;
    --color-bg-dark: #0f172a;
    --color-text-dark: #10231f;
    --color-white: #ffffff;
    --font-family: 'sofia-pro', 'Inter', sans-serif;

    --display: 'Montserrat', 'Inter', sans-serif;
    --ink: #10231f;
    --text: #2e403b;
    --muted: #4c5b64;
    --line: #e1e8e4;
    --bg: #ffffff;
    --bg-soft: #eef5f1;
    --green: #009966;
    --green-600: #008a5c;
    --green-700: #007a55;
    --green-50: #ecf8f2;
    --green-100: #d3f0e2;
    --amber: #b45309;
    --placeholder: #97a1af;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-card: 0 1px 2px rgba(16, 35, 31, 0.04), 0 12px 32px -12px rgba(16, 35, 31, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-content svg {
    fill: currentColor;
}

.main-content {
    flex: 1;
    display: flex;
}

.auth-stage {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 90px);
    padding: clamp(40px, 5vw, 80px) 24px;
    overflow: hidden;
    background-color: #263245;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    width: 100%;
    max-width: clamp(960px, 76vw, 1360px);
    padding: 10px;
    border-radius: 24px;
    background-color: var(--bg);
    box-shadow: 0 24px 64px -28px rgba(16, 35, 31, 0.28);
}

.auth-visual {
    position: relative;
    min-height: clamp(560px, 66vh, 780px);
    overflow: hidden;
    border-radius: 16px;
    background-color: #dfe5df;
}

.auth-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px clamp(28px, 3.5vw, 56px) 26px;
    border-radius: 16px;
    background-color: #fcfbf9;
    text-align: center;
    --ink: #1b293b;
    --text: #344459;
    --muted: #60656c;
    --line: #dedfdf;
    --bg-soft: #e3eaf0;
}

.auth-head {
    margin-top: 0;
}

.auth-title {
    font-family: var(--display);
    font-size: clamp(26px, 2.1vw, 30px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.auth-text {
    max-width: 360px;
    margin: 12px auto 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    text-wrap: balance;
}

.login-card {
    display: grid;
    width: 100%;
    max-width: 360px;
    margin-top: 30px;
    text-align: left;
}

.login-card > .login-form {
    grid-area: 2 / 1;
}

.login-card > .card-footer {
    grid-row: 3;
}

.auth-legal {
    max-width: 360px;
    margin-top: 32px;
    padding-top: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

.auth-legal a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(16, 35, 31, 0.3);
    text-underline-offset: 3px;
    white-space: nowrap;
}

.auth-legal a:hover {
    color: var(--green-700);
    text-decoration-color: currentColor;
}

.login-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
    padding: 0;
}

.login-tab {
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.login-tab:hover {
    color: var(--ink);
}

.login-tab.active {
    background-color: var(--bg);
    color: var(--ink);
    border-color: #243348;
    box-shadow: inset 0 -2px #243348;
}

.login-tab:focus-visible {
    outline: 3px solid var(--green-100);
    outline-offset: 1px;
}

.login-form {
    width: 100%;
}

.login-form[hidden] {
    display: block !important;
    visibility: hidden;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.caps-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--amber);
    font-weight: 600;
}

.caps-hint[hidden] {
    display: none;
}

.caps-hint svg {
    width: 16px;
    height: 16px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 48px;
    border: 1px solid #d6d8da;
    border-radius: 6px;
    background-color: var(--bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    outline: none;
    box-shadow: 0 1px 2px rgba(16, 35, 31, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: var(--placeholder);
    font-weight: 400;
}

.form-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px var(--green-50);
}

.input-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    color: var(--ink);
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
    color: var(--green);
}

.input-icon.left {
    left: 16px;
}

.phone-prefix {
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: 1px;
    width: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-right: 1px solid var(--line);
    border-radius: 11px 0 0 11px;
    background-color: var(--bg-soft);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    pointer-events: none;
}

.phone-prefix-flag {
    width: 20px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: cover;
}

.phone-input {
    padding-right: 16px;
    padding-left: 104px;
    letter-spacing: 0.04em;
}

.eye-btn {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ink);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.eye-btn:hover {
    background-color: var(--bg-soft);
    color: var(--ink);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 2px 0 22px;
}

.sms-form-actions {
    justify-content: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-input {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--green);
}

.checkbox-text {
    font-size: 14px;
    color: var(--text);
}

.forgot-password,
.register-link {
    font-weight: 600;
    color: var(--green-600);
    text-decoration: underline;
    text-decoration-color: rgba(0, 138, 92, 0.35);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.forgot-password:hover,
.register-link:hover {
    color: var(--green-700);
    text-decoration-color: currentColor;
}

.forgot-password {
    font-size: 14px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background-color: #dce9e3;
    color: #194c3b;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--green);
    color: var(--color-white);
}

.submit-btn:focus-visible {
    outline: 3px solid var(--green-100);
    outline-offset: 2px;
}

.sms-code-popup .swal2-html-container {
    margin: 0 1.6em 1em;
}

.sms-code-modal-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: left;
}

.sms-code-description {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.sms-code-input {
    width: 100% !important;
    height: 52px;
    margin: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: 11px !important;
    background-color: var(--bg) !important;
    color: var(--ink) !important;
    font-family: inherit !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 8px;
    text-align: center;
}

.sms-code-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 9px;
    background-color: var(--green-50);
    color: var(--green-700);
    font-size: 14px;
    font-weight: 700;
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    margin-top: 18px;
    font-size: 13px;
}

.footer-text {
    color: var(--muted);
}

.register-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.register-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s var(--ease);
}

.register-link:hover svg {
    transform: translateX(3px);
}

.footer--site-footer {
    padding-top: 32px;
    overflow: hidden;
}

.footer--main {
    position: relative;
    isolation: isolate;
    padding-bottom: 28px;
}

.footer--main::after {
    content: "devvitrin" / "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    font-family: var(--display);
    font-size: clamp(64px, 12vw, 180px);
    font-weight: 800;
    line-height: 0.74;
    letter-spacing: -0.06em;
    text-align: center;
    color: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 900px) {
    .auth-stage {
        padding: 24px 16px 48px;
    }

    .auth-card {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
        border-radius: 26px;
    }

    .auth-visual {
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-radius: 18px;
    }

    .auth-visual img {
        object-position: 50% 43%;
    }

    .auth-panel {
        margin-top: 8px;
        padding: 28px 24px 24px;
    }

    .auth-head {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .auth-stage {
        padding: 12px 10px 32px;
    }

    .auth-card {
        padding: 8px;
        border-radius: 22px;
    }

    .auth-visual {
        aspect-ratio: 2 / 1;
        border-radius: 15px;
    }

    .auth-panel {
        padding: 24px 12px 18px;
    }

    .auth-title {
        font-size: 27px;
    }

    .auth-text {
        font-size: 15px;
    }

    .form-actions {
        flex-wrap: wrap;
    }
}

.auth-panel {
    background-color: #ffffff;
}

.submit-btn {
    background-color: var(--green);
    color: var(--color-white);
    box-shadow: 0 10px 24px -12px rgba(0, 153, 102, 0.55);
}

.submit-btn:hover {
    background-color: var(--green-700);
}

@media (min-width: 901px) {
    .auth-title {
        font-size: clamp(30px, 2.3vw, 40px);
        white-space: nowrap;
        font-weight: 600;
    }

    .auth-text {
        max-width: 420px;
        margin-top: 14px;
        font-size: clamp(15px, 1.1vw, 17px);
    }

    .login-card,
    .auth-legal {
        max-width: clamp(400px, 30vw, 460px);
    }

    .login-card {
        margin-top: 28px;
    }

    .login-tab {
        min-height: 46px;
        font-size: 15px;
    }

    .login-tabs {
        margin-bottom: 22px;
    }

    .form-label {
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 600;
    }

    .form-input,
    .submit-btn {
        height: 50px;
        font-size: 16px;
    }

    .submit-btn {
        font-weight: 700;
    }

    .auth-legal {
        font-size: 13px;
    }
}

.auth-stage {
    background:
        radial-gradient(50% 60% at 50% 40%, rgba(0, 153, 102, 0.06), transparent 70%),
        #f2f4f3;
}

.auth-card {
    box-shadow: 0 1px 2px rgba(16, 35, 31, 0.05), 0 30px 70px -30px rgba(16, 35, 31, 0.3);
}

.auth-mark {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 18px;
}

.login-tab.active {
    border-color: var(--green);
    box-shadow: inset 0 -2px var(--green);
    color: var(--green-700);
}

.checkbox-text {
    font-size: 15px;
}

.auth-legal {
    font-size: 14px;
}

@media (min-width: 901px) and (max-height: 960px) {
    .auth-stage {
        padding-block: 24px;
    }

    .auth-visual {
        min-height: 0;
    }

    .auth-panel {
        padding-block: 28px 22px;
    }

    .auth-mark {
        margin-bottom: 12px;
    }

    .login-card {
        margin-top: 22px;
    }
}

@media (max-width: 600px) {
    .auth-visual {
        aspect-ratio: 3 / 1;
    }

    .auth-panel {
        padding-top: 20px;
    }
}

@media (min-width: 901px) and (max-height: 780px) {
    .auth-panel {
        padding-block: 22px 16px;
    }

    .login-tabs {
        margin-bottom: 16px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-input,
    .submit-btn {
        height: 46px;
    }

    .form-actions {
        margin-bottom: 16px;
    }

    .card-footer {
        margin-top: 14px;
        padding-top: 14px;
    }

    .auth-legal {
        margin-top: 16px;
    }
}

.phone-prefix {
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 84px;
    border-right: 1px solid #dcdfe2;
    border-radius: 0;
    background-color: transparent;
    font-size: 15px;
    font-weight: 600;
}

.phone-prefix-flag {
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(16, 35, 31, 0.08);
}

.form-input {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-input:hover:not(:focus) {
    border-color: #b9c0c7;
}

.form-input:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(0, 153, 102, 0.1);
}

.legal-dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: min(72vh, 620px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: var(--color-white);
    color: var(--text);
    box-shadow: 0 32px 80px -24px rgba(16, 35, 31, 0.35);
    overflow: hidden;
}

.legal-dialog[open] {
    display: flex;
    flex-direction: column;
    animation: legal-dialog-in 0.28s var(--ease);
}

.legal-dialog::backdrop {
    background: rgba(16, 35, 31, 0.45);
    backdrop-filter: blur(2px);
}

@keyframes legal-dialog-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
}

.legal-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 16px 24px;
    border-bottom: 1px solid var(--line);
}

.legal-dialog-title {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
    color: var(--ink);
}

.legal-dialog-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink);
    cursor: pointer;
}

.legal-dialog-close:hover {
    background: var(--green-100);
}

.legal-dialog-close svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.legal-dialog-body {
    flex: 1;
    min-height: 0;
    padding: 4px 24px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 15px;
    line-height: 1.6;
}

.legal-dialog-body h3 {
    margin: 20px 0 6px;
    font-family: var(--display);
    font-size: 15px;
    font-weight: 650;
    color: var(--ink);
}

.legal-dialog-body p + p {
    margin-top: 8px;
}

.legal-dialog-body ul {
    padding-left: 20px;
}

.legal-dialog-body li + li {
    margin-top: 4px;
}

.legal-dialog-foot {
    display: flex;
    justify-content: flex-end;
    padding: 14px 24px;
    border-top: 1px solid var(--line);
}

.legal-dialog-accept {
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    color: var(--color-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.legal-dialog-accept:hover {
    background: var(--green-700);
}

.auth-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 14px;
    color: #5b6773;
}

.auth-legal svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--green);
    fill: currentColor;
}

@media (min-width: 901px) {
    .auth-stage {
        align-items: flex-start;
        padding-top: clamp(32px, 7vh, 96px);
    }
}

.brand-title {
    max-width: 13ch;
    font-family: var(--display);
    font-size: clamp(32px, 2.8vw, 46px);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.brand-title span {
    display: block;
    color: var(--mint);
}

@media (max-width: 900px) {
    .brand-title {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .brand-title {
        font-size: 21px;
    }

    .auth-legal {
        flex-wrap: wrap;
        text-align: center;
    }
}

.auth-v {
    --navy: #0f172a;
    --mint: #34d399;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: clamp(36px, 3.4vw, 56px);
    overflow: hidden;
    background: linear-gradient(160deg, #13203a 0%, #0f172a 55%, #0b1324 100%);
    color: #ffffff;
}

.auth-v .brand-title {
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .auth-visual.auth-v {
        min-height: 0;
        aspect-ratio: auto;
        height: 150px;
        justify-content: center;
        padding: 0 28px;
    }
}

@media (max-width: 600px) {
    .auth-visual.auth-v {
        height: 124px;
        padding: 0 20px;
    }
}

.v-shelf {
    background:
        radial-gradient(70% 50% at 50% 100%, rgba(0, 188, 125, 0.2), transparent 70%),
        linear-gradient(160deg, #13203a 0%, #0f172a 55%, #0b1324 100%);
}

.sh {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sh svg {
    width: 100%;
    height: 100%;
}

.sh--base svg {
    fill: rgba(255, 255, 255, 0.05);
}

.sh--lit svg {
    fill: rgba(52, 211, 153, 0.55);
}

.sh--lit {
    -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 50%, transparent 65%);
    mask-image: linear-gradient(100deg, transparent 35%, #000 50%, transparent 65%);
    -webkit-mask-size: 300% 100%;
    mask-size: 300% 100%;
    animation: sh-sweep 7s cubic-bezier(0.45, 0, 0.25, 1) infinite;
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.5));
}

@keyframes sh-sweep {
    0% { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
    70%, 100% { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}

.v-shelf::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, #13203a 0%, rgba(15, 23, 42, 0) 42%);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .sh--lit { display: none; }
}

@media (max-width: 900px) {
    .sh, .v-shelf::after { opacity: 0.5; }
}

.sh--base svg {
    fill: rgba(255, 255, 255, 0.055);
}

.sh--lit svg {
    fill: rgba(236, 253, 245, 0.42);
}

.sh--lit {
    -webkit-mask-image: linear-gradient(100deg, transparent 38%, rgba(0, 0, 0, 0.6) 46%, #000 50%, rgba(0, 0, 0, 0.6) 54%, transparent 62%);
    mask-image: linear-gradient(100deg, transparent 38%, rgba(0, 0, 0, 0.6) 46%, #000 50%, rgba(0, 0, 0, 0.6) 54%, transparent 62%);
    animation-duration: 8s;
    filter: drop-shadow(0 0 10px rgba(167, 243, 208, 0.45));
}

.v-shelf {
    background:
        radial-gradient(50% 35% at 85% 10%, rgba(56, 120, 255, 0.1), transparent 70%),
        linear-gradient(160deg, #13203a 0%, #0f172a 55%, #0b1324 100%);
}

.sh svg .f { fill: rgba(255, 255, 255, 0.03); }
.sh svg .u { fill: rgba(255, 255, 255, 0.07); }
.sh svg .bay { fill: rgba(148, 197, 255, 0.045); }
.sh svg .b { fill: rgba(208, 222, 239, 0.17); }
.sh svg .cap { fill: #697d92; }
.sh svg .gl { fill: rgba(200, 255, 235, 0.3); }
.sh svg .dr { fill: rgba(255, 255, 255, 0.05); }
.sh svg .hd { fill: rgba(255, 255, 255, 0.18); }
.sh svg .s-g { fill: rgba(52, 211, 153, 0.65); }
.sh svg .s-b { fill: rgba(125, 181, 243, 0.65); }
.sh svg .s-r { fill: rgba(225, 135, 137, 0.65); }
.sh svg .s-o { fill: rgba(224, 192, 121, 0.6); }

.sh--lit svg .f,
.sh--lit svg .bay,
.sh--lit svg .dr { fill: rgba(236, 253, 245, 0.08); }
.sh--lit svg .u { fill: rgba(236, 253, 245, 0.2); }
.sh--lit svg .b { fill: rgba(255, 255, 255, 0.5); }
.sh--lit svg .gl { fill: rgba(236, 253, 245, 0.95); }
.sh--lit svg .hd { fill: rgba(255, 255, 255, 0.6); }
.sh--lit svg .s-g { fill: rgba(52, 211, 153, 0.95); }
.sh--lit svg .s-b { fill: rgba(96, 165, 250, 0.95); }
.sh--lit svg .s-r { fill: rgba(248, 113, 113, 0.95); }
.sh--lit svg .s-o { fill: rgba(251, 191, 36, 0.9); }

.v-shelf::after {
    background: linear-gradient(180deg, #13203a 0%, rgba(15, 23, 42, 0) 38%);
}

.v-shelf {
    --pad: clamp(36px, 3.4vw, 56px);
    padding: var(--pad);
    background:
        radial-gradient(50% 35% at 85% 8%, rgba(56, 120, 255, 0.1), transparent 70%),
        linear-gradient(160deg, #13203a 0%, #0f172a 55%, #0b1324 100%);
}

.v-shelf::after {
    display: none;
}

.sh-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sh-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    margin: clamp(20px, 3vh, 36px) calc(var(--pad) * -1) calc(var(--pad) * -1);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
    mask-image: linear-gradient(180deg, transparent 0, #000 22%);
}

.sh--base svg .f { fill: rgba(255, 255, 255, 0.025); }
.sh--base svg .u { fill: rgba(255, 255, 255, 0.07); }
.sh--base svg .bay { fill: url(#sh-bay); }
.sh--base svg .spill { fill: url(#sh-spill); }
.sh--base svg .b { fill: rgba(255, 255, 255, 0.12); }
.sh--base svg .bt { fill: rgba(255, 255, 255, 0.1); }
.sh--base svg .cap { fill: rgba(255, 255, 255, 0.2); }
.sh--base svg .gl { fill: rgba(200, 255, 235, 0.28); }
.sh--base svg .dr { fill: rgba(255, 255, 255, 0.045); }
.sh--base svg .hd { fill: rgba(255, 255, 255, 0.16); }

.sh--lit svg .f { fill: transparent; }
.sh--lit svg .u { fill: rgba(236, 253, 245, 0.16); }
.sh--lit svg .bay { fill: rgba(236, 253, 245, 0.06); }
.sh--lit svg .spill { fill: rgba(236, 253, 245, 0.1); }
.sh--lit svg .b { fill: rgba(255, 255, 255, 0.5); }
.sh--lit svg .bt { fill: rgba(255, 255, 255, 0.45); }
.sh--lit svg .cap { fill: rgba(255, 255, 255, 0.7); }
.sh--lit svg .gl { fill: rgba(236, 253, 245, 0.95); }
.sh--lit svg .dr { fill: rgba(236, 253, 245, 0.05); }
.sh--lit svg .hd { fill: rgba(255, 255, 255, 0.5); }

.sh--base .bay-g {
    animation: bay-on 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.2s + var(--i) * 0.14s) both;
}

@keyframes bay-on {
    0% { opacity: 0.12; }
    28% { opacity: 0.9; }
    40% { opacity: 0.5; }
    100% { opacity: 1; }
}

.sh--lit {
    animation: sh-pass 3.6s cubic-bezier(0.45, 0, 0.25, 1) 1s infinite both;
}

@keyframes sh-pass {
    0% {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }

    70%, 100% {
        -webkit-mask-position: 0% 0;
        mask-position: 0% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sh--base .bay-g {
        animation: none;
    }

    .sh--lit {
        display: none;
    }
}

.auth-title {
    font-weight: 650;
}

.login-tabs {
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #f1f3f2;
}

.login-tab {
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #5b6773;
    font-size: 15px;
    box-shadow: none;
}

.login-tab:hover {
    color: var(--ink);
}

.login-tab.active {
    border: 0;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(16, 35, 31, 0.08), 0 4px 12px -6px rgba(16, 35, 31, 0.18);
}

.login-tab:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.form-group.has-error .form-input,
.form-group.has-error .form-input:focus {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.1);
}

.form-group.has-error .input-icon {
    color: #d92d20;
}

.form-group.has-error .form-hint:not(.caps-hint) {
    display: none;
}

.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #b42318;
    animation: field-error-in 0.2s var(--ease) both;
}

.field-error svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: currentColor;
}

@keyframes field-error-in {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    background: #fef3f2;
    color: #b42318;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    animation: form-alert-in 0.32s var(--ease) both;
}

.form-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    fill: currentColor;
}

@keyframes form-alert-in {
    0% { opacity: 0; transform: none; }
    30% { opacity: 1; transform: translateX(-5px); }
    55% { transform: translateX(4px); }
    80% { transform: translateX(-2px); }
    100% { transform: none; }
}

.submit-btn {
    gap: 10px;
}

.submit-btn:disabled {
    cursor: default;
}

.submit-btn.is-loading,
.submit-btn.is-success {
    background-color: var(--green-700);
}

.submit-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.submit-btn.is-success svg {
    animation: check-in 0.3s var(--ease) both;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes check-in {
    from {
        opacity: 0;
        transform: scale(0.4);
    }
}

@media (min-width: 901px) {
    .auth-stage {
        align-items: center;
        padding-block: clamp(40px, 6vh, 80px);
    }

    .auth-visual.auth-v {
        min-height: clamp(560px, 68vh, 860px);
    }

    .auth-title {
        font-size: clamp(28px, 2vw, 32px);
        letter-spacing: -0.02em;
    }

    .auth-mark {
        width: 36px;
        height: 36px;
        margin-bottom: 16px;
    }

    .login-card {
        margin-top: 28px;
    }
}

@media (max-width: 900px) {
    .v-shelf .sh-wrap {
        position: absolute;
        inset: 0;
        margin: 0;
        opacity: 0.5;
        -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 75%);
        mask-image: linear-gradient(90deg, transparent 15%, #000 75%);
    }

    .v-shelf .sh {
        opacity: 1;
    }
}

@media (min-width: 901px) {
    .auth-title {
        font-size: clamp(32px, 2.4vw, 40px);
    }

    .auth-text {
        max-width: 380px;
        margin-top: 12px;
        font-size: 16px;
        color: #5b6773;
    }
}

@media (min-width: 901px) and (max-height: 960px) {
    .auth-stage {
        padding-block: 24px;
    }

    .auth-visual.auth-v {
        min-height: 0;
    }

    .login-card {
        margin-top: 20px;
    }
}

@media (min-width: 601px) and (max-width: 719px) {
    .auth-stage {
        padding: 40px 32px 56px;
    }

    .auth-card {
        max-width: 600px;
        padding: 10px;
    }

    .auth-visual.auth-v {
        height: 190px;
        padding: 0 36px;
    }

    .auth-v .brand-title {
        font-size: 30px;
    }

    .auth-panel {
        padding: 32px 44px 28px;
    }
}

@media (min-width: 720px) and (max-width: 900px) {
    .auth-stage {
        padding: 32px 24px 48px;
    }

    .auth-card {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        max-width: 860px;
        padding: 10px;
        border-radius: 24px;
    }

    .auth-visual.auth-v {
        --pad: 28px;
        height: auto;
        min-height: 0;
        justify-content: flex-start;
        padding: var(--pad);
        border-radius: 16px;
    }

    .auth-v .brand-title {
        font-size: 28px;
    }

    .v-shelf .sh-wrap {
        position: relative;
        inset: auto;
        flex: 1;
        min-height: 0;
        margin: 20px calc(var(--pad) * -1) calc(var(--pad) * -1);
        opacity: 1;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
        mask-image: linear-gradient(180deg, transparent 0, #000 22%);
    }

    .v-shelf .sh {
        opacity: 1;
    }

    .auth-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 0;
        padding: 36px 28px 28px;
    }

    .auth-title {
        font-size: 26px;
    }

    .auth-text {
        font-size: 14px;
    }

    .auth-legal {
        display: block;
        max-width: none;
        font-size: 13px;
        text-align: center;
    }

    .auth-legal svg {
        display: inline-block;
        margin-right: 4px;
        vertical-align: -2px;
    }
}

@media (max-width: 600px) {
    .auth-stage {
        align-items: stretch;
        min-height: calc(100svh - 56px);
        padding: 0;
        background: #ffffff;
    }

    .auth-card {
        display: flex;
        flex-direction: column;
        max-width: none;
        padding: 0;
        border-radius: 0;
        background: #ffffff;
        box-shadow: none;
    }

    .auth-visual.auth-v {
        flex: 1 0 auto;
        height: auto;
        min-height: 260px;
        justify-content: flex-start;
        padding: 28px 24px;
        border-radius: 0;
    }

    .auth-v .brand-title {
        font-size: 30px;
    }

    .v-shelf .sh-wrap {
        position: relative;
        inset: auto;
        flex: 1;
        min-height: 140px;
        margin: 12px -24px -28px;
        opacity: 1;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%);
        mask-image: linear-gradient(180deg, transparent 0, #000 30%);
    }

    .v-shelf .sh {
        opacity: 1;
    }

    .auth-panel {
        position: relative;
        z-index: 1;
        margin-top: -28px;
        padding: 28px 20px 32px;
        border-radius: 28px 28px 0 0;
        box-shadow: 0 -12px 28px -14px rgba(15, 23, 42, 0.45);
    }

    .auth-mark {
        width: 36px;
        height: 36px;
        margin-bottom: 12px;
    }

    .auth-title {
        font-size: 25px;
    }

    .auth-text {
        margin-top: 6px;
        font-size: 14px;
        line-height: 1.5;
    }

    .login-card {
        margin-top: 18px;
    }

    .login-tabs {
        margin-bottom: 16px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-actions {
        margin-bottom: 16px;
    }

    .auth-legal {
        display: block;
        max-width: none;
        margin-top: 20px;
        font-size: 13px;
    }

    .auth-legal svg {
        display: inline-block;
        margin-right: 4px;
        vertical-align: -2px;
    }
}

@media (max-width: 380px) {
    .auth-title {
        font-size: 23px;
    }

    .auth-text {
        font-size: 13.5px;
    }

    .login-tab {
        font-size: 13.5px;
        padding-inline: 6px;
    }
}

.login-tabs {
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background: none;
}

.login-tab {
    border: 1px solid #dfe3e6;
    border-radius: 10px;
    background: #ffffff;
    color: #5b6773;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-tab:hover {
    border-color: #b9c0c7;
    color: var(--ink);
}

.login-tab.active {
    border: 1.5px solid var(--green);
    background: #f3fbf7;
    color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(0, 153, 102, 0.1), 0 6px 14px -10px rgba(0, 153, 102, 0.6);
}

.login-tab {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: none;
}

.login-tab:hover {
    border-color: #c9ced2;
}

.login-tab.active {
    border: 1px solid var(--green);
    background: #ffffff;
    color: var(--green-700);
    box-shadow: inset 0 -2px var(--green);
}

.sh--base svg .b,
.sh--base svg .bt { fill: rgba(226, 234, 244, 0.2); }
.sh--base svg .cap { fill: rgba(226, 234, 244, 0.32); }
.sh--base svg .mk { fill: rgba(15, 23, 42, 0.35); }
.sh--base svg .s-g { fill: rgba(52, 211, 153, 0.55); }
.sh--base svg .s-b { fill: rgba(96, 165, 250, 0.55); }
.sh--base svg .s-r { fill: rgba(248, 113, 113, 0.55); }
.sh--base svg .s-o { fill: rgba(251, 191, 36, 0.5); }
.sh--base svg .led { fill: rgba(236, 253, 245, 0.55); }
.sh--base svg .spill { fill: url(#sh-spill); }
.sh--base svg .gl { fill: rgba(200, 255, 235, 0.3); }

.sh--lit svg .b,
.sh--lit svg .bt { fill: rgba(255, 255, 255, 0.78); }
.sh--lit svg .cap { fill: rgba(255, 255, 255, 0.9); }
.sh--lit svg .mk { fill: rgba(15, 23, 42, 0.25); }
.sh--lit svg .led { fill: #ffffff; }

.sh--base .bay-g,
.sh--lit .bay-g {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: cab-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i) * 0.3s) both;
}

@keyframes cab-rise {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
}

.sh svg .gl {
    transform-box: fill-box;
    transform-origin: 0 50%;
    animation: shelf-draw 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--d) both;
}

@keyframes shelf-draw {
    from {
        transform: scaleX(0);
    }
}

.sh svg .dr,
.sh svg .hd {
    animation: fade-in 0.5s ease var(--d) both;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

.sh svg .p {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: product-drop 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) var(--d) both;
}

@keyframes product-drop {
    0% {
        opacity: 0;
        transform: translateY(-22px) scale(0.92);
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

.sh--base svg .lamp {
    animation: lamp-on 0.7s ease var(--d) both;
}

@keyframes lamp-on {
    0% { opacity: 0; }
    30% { opacity: 1; }
    45% { opacity: 0.35; }
    65%, 100% { opacity: 1; }
}

.sh--lit {
    animation: sh-pass 12s cubic-bezier(0.45, 0, 0.25, 1) 6.2s infinite both;
}

.sh--lit svg .lamp {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .sh--base .bay-g,
    .sh--lit .bay-g,
    .sh svg .gl,
    .sh svg .dr,
    .sh svg .hd,
    .sh svg .p,
    .sh--base svg .lamp {
        animation: none;
    }
}
