:root {
    color-scheme: light;
    font-family: 'Barlow', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: oklch(0.982 0.004 265);
    color: oklch(0.21 0.02 265);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(120deg, oklch(0.54 0.17 265 / 0.06), transparent 45%),
        repeating-linear-gradient(90deg, transparent 0 47px, oklch(0.54 0.17 265 / 0.03) 48px),
        oklch(0.982 0.004 265);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.login-card {
    width: min(100%, 430px);
    padding: 42px;
    border: 1px solid oklch(0.90 0.010 265);
    border-radius: 16px;
    background: oklch(0.997 0.002 265);
    box-shadow: 0 16px 48px oklch(0.30 0.03 265 / 0.14);
}

.login-mark {
    display: flex;
    align-items: end;
    gap: 5px;
    height: 34px;
    margin-bottom: 28px;
}

.login-mark span {
    display: block;
    width: 8px;
    border-radius: 99px;
    background: oklch(0.54 0.17 265);
}

.login-mark span:nth-child(1) { height: 16px; }
.login-mark span:nth-child(2) { height: 28px; }
.login-mark span:nth-child(3) { height: 22px; background: oklch(0.72 0.15 73); }

.login-eyebrow {
    margin: 0 0 8px;
    color: oklch(0.50 0.025 265);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 8vw, 46px);
    line-height: 1;
    letter-spacing: -0.03em;
}

.login-copy {
    margin: 18px 0 30px;
    color: oklch(0.50 0.025 265);
    line-height: 1.65;
}

form,
label {
    display: grid;
    gap: 9px;
}

form {
    gap: 18px;
}

label span {
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid oklch(0.82 0.012 265);
    border-radius: 10px;
    background: oklch(0.997 0.002 265);
    color: oklch(0.21 0.02 265);
    font: inherit;
    outline: none;
}

input:focus {
    border-color: oklch(0.54 0.17 265);
    box-shadow: 0 0 0 3px oklch(0.54 0.17 265 / 0.14);
}

button {
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: oklch(0.54 0.17 265);
    color: oklch(0.997 0.002 265);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover:not(:disabled) {
    background: oklch(0.47 0.17 265);
}

button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.login-error {
    margin: -4px 0 0;
    padding: 11px 13px;
    border-radius: 8px;
    background: oklch(0.95 0.03 27);
    color: oklch(0.45 0.14 27);
    font-size: 13px;
}

.login-boundary {
    margin: 22px 0 0;
    color: oklch(0.52 0.02 265);
    font-size: 12px;
    line-height: 1.55;
}

.login-hint {
    margin: 6px 0 0;
    color: oklch(0.52 0.02 265);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .login-card {
        padding: 32px 24px;
    }
}

/* ICP / public-security filing links, fixed at the bottom of the viewport */
.beian {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 11px;
    color: oklch(0.63 0.02 265);
    opacity: 0.75;
}

.beian a {
    color: inherit;
    text-decoration: none;
    margin: 0 8px;
}

.beian a:hover {
    text-decoration: underline;
}

.beian-badge {
    height: 12px;
    width: auto;
    vertical-align: -2px;
    margin-right: 3px;
}
