body.auth-page {
    --auth-navy: #12355b;
    --auth-navy-dark: #0b2745;
    --auth-blue: #1f78a8;
    --auth-cyan: #20a6b8;
    --auth-ink: #172b3a;
    --auth-muted: #647587;
    --auth-line: #d6e1eb;
    --auth-soft: #f4f8fb;
    --auth-panel: #ffffff;

    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--auth-ink);
    background:
        linear-gradient(rgba(31, 120, 168, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 120, 168, 0.055) 1px, transparent 1px),
        #eef5fa;
    background-size: 28px 28px;
    font-family: var(--font-family-sans, Inter, Arial, sans-serif);
}

.auth-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: center;
    width: min(1120px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px;
    box-sizing: border-box;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--auth-navy);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.auth-brand img {
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(18, 53, 91, 0.16);
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 438px);
    align-items: stretch;
    gap: 28px;
    width: 100%;
}

.login-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    padding: 36px;
    overflow: hidden;
    border: 1px solid rgba(18, 53, 91, 0.12);
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        #12355b;
    background-size: 34px 34px;
    box-shadow: 0 22px 54px rgba(18, 53, 91, 0.18);
}

.login-showcase__tag,
.auth-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.login-showcase__tag {
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #dff9ff;
    background: rgba(255, 255, 255, 0.09);
}

.login-showcase h1 {
    margin: 28px 0 14px;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.login-showcase p {
    width: min(100%, 560px);
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.04rem;
    line-height: 1.58;
}

.login-showcase__beam {
    position: relative;
    height: 176px;
    margin-top: auto;
}

.login-showcase__line {
    position: absolute;
    right: 0;
    bottom: 72px;
    left: 0;
    height: 12px;
    border-top: 2px solid rgba(32, 166, 184, 0.95);
    border-bottom: 2px solid rgba(32, 166, 184, 0.95);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
}

.login-showcase__support {
    position: absolute;
    bottom: 38px;
    width: 2px;
    height: 104px;
    background: rgba(255, 255, 255, 0.76);
}

.login-showcase__support::before {
    position: absolute;
    top: -42px;
    left: 50%;
    width: 54px;
    height: 54px;
    border: 2px solid var(--auth-cyan);
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 54px;
    text-align: center;
    transform: translateX(-50%);
}

.login-showcase__support--left {
    left: 9%;
}

.login-showcase__support--middle {
    left: 54%;
}

.login-showcase__support--right {
    right: 12%;
}

.login-showcase__support--left::before {
    content: "P01";
}

.login-showcase__support--middle::before {
    content: "P02";
}

.login-showcase__support--right::before {
    content: "P03";
}

.auth-card {
    width: min(100%, 430px);
    padding: 30px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: var(--auth-panel);
    box-shadow: 0 18px 48px rgba(18, 53, 91, 0.13);
    box-sizing: border-box;
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.auth-card--wide {
    width: min(100%, 860px);
    justify-self: center;
}

.auth-eyebrow {
    margin-bottom: 14px;
    color: var(--auth-navy);
    background: #e6f2fb;
}

.auth-card h1,
.auth-card h2 {
    margin: 0;
    color: var(--auth-navy);
    font-size: 1.7rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.auth-copy {
    margin: 10px 0 22px;
    color: var(--auth-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.auth-demo {
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-left: 4px solid var(--auth-cyan);
    border-radius: 6px;
    background: #f4fbfd;
}

.auth-demo span {
    color: var(--auth-navy);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-demo code {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d7e8f0;
    border-radius: 6px;
    color: #20324c;
    background: #ffffff;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form--inline {
    grid-template-columns: minmax(180px, 1fr) 140px auto;
    align-items: end;
    column-gap: 12px;
    margin-bottom: 20px;
}

.auth-form--inline label {
    grid-row: 1;
}

.auth-form label {
    color: #20324c;
    font-size: 0.86rem;
    font-weight: 750;
}

.auth-form input,
.auth-form select {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #c8d7e3;
    border-radius: 6px;
    color: var(--auth-ink);
    background: #ffffff;
    font: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgba(31, 120, 168, 0.15);
}

.auth-checkbox {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
    margin-top: 6px;
    color: var(--auth-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth-checkbox input {
    width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    padding: 0;
}

.auth-checkbox a {
    color: var(--auth-navy);
    font-weight: 750;
}

.auth-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin-top: 10px;
    padding: 0 16px;
    border: 1px solid var(--auth-navy);
    border-radius: 6px;
    color: #ffffff;
    background: var(--auth-navy);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.auth-form button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.auth-form button:hover {
    background: var(--auth-navy-dark);
    box-shadow: 0 12px 26px rgba(18, 53, 91, 0.2);
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: var(--auth-muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-line);
}

.auth-alert,
.auth-result {
    padding: 11px 12px;
    border: 1px solid rgba(199, 68, 68, 0.34);
    border-radius: 6px;
    background: #fffafa;
    color: #7c2525;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.35;
}

.auth-alert--info,
.auth-result {
    border-color: rgba(62, 120, 168, 0.28);
    background: #f6fbff;
    color: #20324c;
}

.auth-result {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
}

.auth-link,
.auth-dev-link a,
.auth-result a {
    color: var(--auth-navy);
    font-weight: 750;
}

.auth-link {
    display: inline-block;
    width: fit-content;
    margin-top: 18px;
}

.auth-link:hover,
.auth-dev-link a:hover,
.auth-result a:hover {
    color: var(--auth-blue);
}

.auth-dev-link {
    overflow-wrap: anywhere;
    font-size: 0.86rem;
}

.auth-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.auth-table th,
.auth-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e4ebf1;
    text-align: left;
}

.auth-table th {
    color: var(--auth-navy);
    font-weight: 800;
}

@media (max-width: 900px) {
    .auth-shell {
        padding: 22px 16px;
    }

    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        min-height: 320px;
    }
}

@media (max-width: 720px) {
    .auth-brand {
        margin-bottom: 16px;
    }

    .login-showcase,
    .auth-card {
        padding: 22px;
    }

    .login-showcase h1 {
        font-size: 2.5rem;
    }

    .auth-form--inline {
        grid-template-columns: 1fr;
    }

    .auth-table {
        display: block;
        overflow-x: auto;
    }
}
