:root {
    font-family: "DM Sans", sans-serif;
    color: #172b4d;
    background: #fff;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body.login-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: #fff;
    font-family: "DM Sans", sans-serif;
}

.login-screen {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, .95fr) minmax(420px, 1.05fr);
    background: #fff;
}

.login-visual {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px 8%;
    color: #fff;
    background: linear-gradient(145deg, #172b4d 0%, #1d3b67 58%, #245b88 100%);
}

.login-visual::after {
    position: absolute;
    right: -170px;
    bottom: -160px;
    width: 460px;
    height: 460px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgb(255 255 255 / 3.5%), 0 0 0 96px rgb(255 255 255 / 2.5%);
    content: "";
}

.login-visual-top,
.login-visual-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-brand,
.login-mobile-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.login-brand .brand-copy,
.login-mobile-brand .brand-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.login-brand strong,
.login-mobile-brand strong {
    font-family: Manrope, sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.login-brand small,
.login-mobile-brand small {
    color: rgb(255 255 255 / 62%);
    font-size: 11px;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    flex: none;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 12px;
    background: rgb(255 255 255 / 12%);
    color: #fff;
    font-family: Manrope, sans-serif;
    font-size: 21px;
    font-weight: 800;
}

.login-status,
.login-visual-footer {
    color: rgb(255 255 255 / 70%);
    font-size: 12px;
}

.login-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.login-status svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #8dd8b0;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.login-visual-content {
    position: relative;
    z-index: 1;
    max-width: 510px;
    margin: 48px auto;
}

.login-visual-content .eyebrow {
    color: #9ecdf3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.login-visual-content h1 {
    margin: 10px 0 16px;
    font-family: Manrope, sans-serif;
    font-size: clamp(38px, 4vw, 62px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.login-visual-content > p:not(.eyebrow) {
    max-width: 430px;
    color: rgb(255 255 255 / 72%);
    font-size: 16px;
    line-height: 1.65;
}

.queue-preview {
    width: min(100%, 410px);
    margin-top: 38px;
    padding: 18px;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 18px;
    background: rgb(255 255 255 / 9%);
    box-shadow: 0 24px 60px rgb(0 0 0 / 18%);
    backdrop-filter: blur(12px);
}

.queue-preview-header,
.queue-ticket,
.queue-counter {
    display: flex;
    align-items: center;
}

.queue-preview-header,
.queue-ticket {
    justify-content: space-between;
}

.queue-preview-header {
    color: rgb(255 255 255 / 64%);
    font-size: 12px;
}

.queue-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9ee2bc;
}

.queue-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.queue-ticket {
    padding: 22px 0;
}

.queue-ticket small {
    display: block;
    margin-bottom: 4px;
    color: rgb(255 255 255 / 60%);
    font-size: 12px;
}

.queue-ticket strong {
    font-family: Manrope, sans-serif;
    font-size: 42px;
    letter-spacing: -.04em;
}

.queue-counter {
    gap: 8px;
    color: #c9e3f5;
    font-size: 13px;
}

.queue-counter svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.queue-lines {
    display: grid;
    gap: 8px;
}

.queue-lines span {
    height: 5px;
    border-radius: 8px;
    background: rgb(255 255 255 / 16%);
}

.queue-lines span:first-child {
    width: 78%;
    background: #81c7ec;
}

.queue-lines span:nth-child(2) {
    width: 56%;
}

.queue-lines span:nth-child(3) {
    width: 67%;
}

.login-visual-footer {
    position: relative;
    z-index: 1;
    justify-content: flex-start;
    gap: 22px;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 8%;
    background: #fff;
}

.login-panel-inner {
    width: min(100%, 430px);
}

.login-mobile-brand {
    display: none;
}

.login-mobile-brand .brand-mark {
    border: 0;
    background: #245b88;
}

.login-mobile-brand strong {
    color: #172b4d;
}

.login-mobile-brand small {
    color: #718096;
}

.login-heading h2 {
    margin: 10px 0 9px;
    color: #172b4d;
    font-family: Manrope, sans-serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.login-heading .eyebrow {
    margin: 0;
    color: #245b88;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.login-heading > p:last-child {
    margin: 0 0 34px;
    color: #718096;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 20px;
}

.login-form .field {
    display: grid;
    gap: 8px;
}

.login-form .field label {
    color: #24364b;
    font-size: 13px;
    font-weight: 600;
}

.login-input {
    display: flex;
    height: 50px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #d9e0e9;
    border-radius: 11px;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}

.login-input:focus-within {
    border-color: #4b91c4;
    box-shadow: 0 0 0 4px rgb(75 145 196 / 12%);
}

.login-input > svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: #7b8ba0;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.login-input input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172b4d;
    font: inherit;
    font-size: 14px;
}

.login-input input::placeholder {
    color: #9aa7b7;
}

.login-submit {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 11px;
    background: #245b88;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .18s;
}

.login-submit:hover {
    transform: translateY(-1px);
    background: #1d4e78;
}

.login-submit svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.login-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
}

.login-footer {
    margin: 26px 0 0;
    color: #8a98a9;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 900px) {
    .login-screen {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 28px 24px;
    }

    .login-mobile-brand {
        display: flex;
        margin-bottom: 70px;
    }

    .login-panel-inner {
        max-width: 440px;
    }
}

@media (max-width: 520px) {
    .login-mobile-brand {
        margin-bottom: 52px;
    }

    .login-heading h2 {
        font-size: 30px;
    }
}
