:root {
    --accent: #0891b2;
    --text: #1d2733;
    --muted: #68727f;
    --border: #d3d8df;
    --radius-input: 8px;
    --panel-bg: linear-gradient(165deg, #101823 0%, #1b2634 100%);
    --panel-line: rgba(255, 255, 255, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.split { display: flex; min-height: 100vh; }

.panel {
    flex: 1.05;
    background: var(--panel-bg);
    color: #dbe2ea;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.panel-inner { width: 100%; max-width: 330px; }
.panel-brand { display: flex; align-items: center; gap: 0.85rem; }
.panel-brand svg { flex: none; }
.panel-brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f3f6f9;
}
.tagline { color: #94a1b0; font-size: 0.9rem; margin-top: 0.85rem; }

.device { margin-top: 2.4rem; border-top: 1px solid var(--panel-line); }
.device > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--panel-line);
    font-size: 0.86rem;
}
.device dt { color: #8d99a8; }
.device dd { color: #eef2f6; font-weight: 500; text-align: right; }
.device .ok { display: inline-flex; align-items: center; gap: 0.45rem; }
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34c98e;
    box-shadow: 0 0 0 3px rgba(52, 201, 142, 0.18);
}

.form-side {
    flex: 1;
    background: #f5f6f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 2rem;
}

.form-box { width: 100%; max-width: 352px; }
.form-box h2 { font-size: 1.42rem; font-weight: 700; letter-spacing: -0.01em; }
.hint { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin: 0.45rem 0 1.7rem; }

.field { margin-bottom: 1.05rem; }
.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #39424e;
}
.field input {
    width: 100%;
    padding: 0.68rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
}
.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #4b5563;
    cursor: pointer;
    margin: 0.15rem 0 1.25rem;
}
.check input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }

.btn {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-input);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: filter 120ms ease;
}
.btn:hover { filter: brightness(0.94); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.btn:disabled { opacity: 0.7; cursor: default; }
.btn:disabled:active { transform: none; }
.btn.busy::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error {
    display: none;
    background: #fef2f2;
    border: 1px solid #f5caca;
    color: #b3261e;
    border-radius: var(--radius-input);
    font-size: 0.85rem;
    line-height: 1.45;
    padding: 0.6rem 0.8rem;
    margin-top: 1.05rem;
}

.meta { margin-top: 1.6rem; color: #98a1ad; font-size: 0.76rem; }
.site-footer { margin-top: 2.2rem; color: #98a1ad; font-size: 0.78rem; text-align: center; }

.notfound h2 { font-size: 1.42rem; font-weight: 700; letter-spacing: -0.01em; }
.notfound .code {
    font-size: 2.9rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}
.notfound p { color: var(--muted); font-size: 0.92rem; margin: 0.45rem 0 1.4rem; }
.notfound a { color: var(--accent); font-size: 0.88rem; text-decoration: none; }
.notfound a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .split { flex-direction: column; }
    .panel { flex: none; padding: 0; align-items: stretch; }
    .panel-inner {
        max-width: none;
        display: flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.95rem 1.25rem;
    }
    .panel-brand { gap: 0.6rem; }
    .panel-brand svg { width: 28px; height: 28px; }
    .panel-brand h1 { font-size: 1.02rem; }
    .tagline, .device { display: none; }
    .form-side { justify-content: flex-start; padding: 2.5rem 1.25rem 2rem; }
}
