:root {
    --ww-login-brand: #0b84d8;
    --ww-login-brand-dark: #064f87;
    --ww-login-accent: #38bdf8;
    --ww-login-action: #0b84d8;
    --ww-login-action-hover: #066db7;
    --ww-login-ink: #0f172a;
    --ww-login-muted: #657286;
    --ww-login-line: #e5edf5;
}

html,
body {
    height: 100%;
}

body.ww-auth-body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: #071928;
    color: var(--ww-login-ink);
}

body.ww-auth-theme-light {
    --ww-login-brand: #0b84d8;
    --ww-login-brand-dark: #064f87;
    --ww-login-accent: #38bdf8;
    --ww-login-action: #0b84d8;
    --ww-login-action-hover: #066db7;
}

body.ww-auth-theme-dark {
    --ww-login-brand: #075f9f;
    --ww-login-brand-dark: #041b2d;
    --ww-login-accent: #60a5fa;
    --ww-login-action: #1d9bf0;
    --ww-login-action-hover: #0b84d8;
}

.ww-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 18, 29, .88), rgba(5, 18, 29, .66) 46%, rgba(5, 18, 29, .30)),
        radial-gradient(circle at 18% 20%, rgba(56, 189, 248, .22), transparent 28%),
        linear-gradient(135deg, #092238, #0a568d 58%, #1b9bd7);
}

.ww-auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
        radial-gradient(circle at 72% 33%, rgba(255,255,255,.16), transparent 2px),
        radial-gradient(circle at 62% 48%, rgba(56,189,248,.20), transparent 2px),
        radial-gradient(circle at 81% 56%, rgba(255,255,255,.12), transparent 2px);
    background-size: 76px 76px, 76px 76px, 190px 140px, 240px 180px, 220px 180px;
    opacity: .34;
    pointer-events: none;
}

.ww-auth-shell::after {
    content: "";
    position: absolute;
    inset: auto -8% -18% -8%;
    height: 42%;
    background:
        linear-gradient(10deg, rgba(56,189,248,.24), transparent 56%),
        linear-gradient(-7deg, rgba(255,255,255,.18), transparent 48%);
    transform: skewY(-4deg);
    pointer-events: none;
}

.ww-auth-hero,
.ww-auth-panel {
    position: relative;
    z-index: 1;
}

.ww-auth-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px;
    color: #fff;
}

.ww-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 44px;
}

.ww-auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ww-login-accent);
    color: #062238;
    font-weight: 900;
    letter-spacing: .02em;
    box-shadow: 0 16px 32px rgba(0,0,0,.18);
    overflow: hidden;
}

.ww-auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

.ww-auth-brand-name {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .01em;
}

.ww-auth-brand-code {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.72);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.ww-auth-title {
    max-width: 760px;
    margin: 0;
    font-size: 54px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.ww-auth-copy {
    max-width: 680px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.84);
    font-size: 16px;
    line-height: 1.55;
}

.ww-auth-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.ww-auth-pill {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.92);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
}

.ww-auth-foot {
    position: absolute;
    left: 56px;
    bottom: 28px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.ww-auth-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.ww-auth-card {
    width: min(100%, 424px);
    padding: 32px;
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 80px rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.56);
}

.ww-auth-kicker {
    margin: 0 0 14px;
    color: var(--ww-login-muted);
    font-size: 13px;
    font-weight: 800;
}

.ww-auth-form-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    color: var(--ww-login-ink);
    font-weight: 900;
}

.ww-auth-form-copy {
    margin: 10px 0 24px;
    color: var(--ww-login-muted);
    line-height: 1.45;
}

.ww-auth-field {
    margin-bottom: 16px;
}

.ww-auth-label {
    display: block;
    margin-bottom: 7px;
    color: #536174;
    font-size: 13px;
    font-weight: 900;
}

.ww-auth-input {
    width: 100%;
    height: 48px;
    border-radius: 9px;
    border: 1px solid var(--ww-login-line);
    background: #f8fbfe;
    color: var(--ww-login-ink);
    padding: 0 14px;
    font-size: 14px;
    outline: none;
}

.ww-auth-input:focus {
    border-color: rgba(11,132,216,.44);
    box-shadow: 0 0 0 4px rgba(11,132,216,.12);
    background: #fff;
}

.ww-auth-button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 9px;
    background: var(--ww-login-action);
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    box-shadow: 0 12px 26px rgba(11, 132, 216, .24);
}

.ww-auth-button:hover,
.ww-auth-button:focus {
    background: var(--ww-login-action-hover);
    color: #fff;
}

.ww-auth-note {
    margin: 14px 0 0;
    color: #7b8797;
    font-size: 12px;
    line-height: 1.45;
}

.ww-auth-current {
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #eff8ff;
    color: #0b426f;
    font-size: 13px;
    font-weight: 700;
}

.ww-auth-copyline {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--ww-login-line);
    color: #8b96a6;
    font-size: 12px;
}

.validation-summary-errors,
.field-validation-error {
    color: #c62828;
    font-weight: 700;
}

@media (max-width: 1040px) {
    .ww-auth-shell {
        grid-template-columns: 1fr;
    }

    .ww-auth-hero {
        min-height: auto;
        padding: 34px 26px 18px;
    }

    .ww-auth-title {
        font-size: 36px;
    }

    .ww-auth-copy {
        font-size: 14px;
    }

    .ww-auth-foot {
        position: static;
        margin-top: 28px;
    }

    .ww-auth-panel {
        min-height: auto;
        padding: 18px 18px 32px;
    }
}
