:root {
    color-scheme: light;
    --bg: #eef2f6;
    --panel: #ffffff;
    --text: #172033;
    --muted: #667085;
    --border: #d7dde6;
    --primary: #1f6feb;
    --primary-dark: #1558c0;
    --success-bg: #e9f7ef;
    --success-text: #146c43;
    --error-bg: #fff1f0;
    --error-text: #b42318;
    --shadow: 0 24px 60px rgba(30, 42, 62, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(31, 111, 235, 0.10), transparent 32%),
        linear-gradient(315deg, rgba(20, 108, 67, 0.08), transparent 30%),
        var(--bg);
}

.shell {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: minmax(320px, 430px) minmax(280px, 1fr);
    gap: 20px;
    align-items: stretch;
}

.panel {
    background: var(--panel);
    border: 1px solid rgba(215, 221, 230, 0.85);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-panel {
    padding: 32px;
}

.status-panel {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.brand-row,
.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-row {
    justify-content: flex-start;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #172033;
    color: #ffffff;
    font-weight: 700;
}

.eyebrow {
    margin: 0 0 4px;
    font-size: 0.75rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
}

h1 {
    font-size: 1.8rem;
    line-height: 1.15;
}

h2 {
    font-size: 1.2rem;
    line-height: 1.25;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 28px 0 24px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f6f8fb;
}

.tab {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.tab.is-active {
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 1px 4px rgba(30, 42, 62, 0.12);
}

form {
    display: grid;
    gap: 10px;
}

label {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #344054;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

input:focus {
    outline: 3px solid rgba(31, 111, 235, 0.18);
    border-color: var(--primary);
}

button {
    font: inherit;
}

.primary-button,
.secondary-button {
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
}

.primary-button {
    background: var(--primary);
    color: #ffffff;
}

.primary-button:hover {
    background: var(--primary-dark);
}

.secondary-button {
    background: #172033;
    color: #ffffff;
}

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

.message {
    min-height: 24px;
    margin: 16px 0 0;
    color: var(--error-text);
    font-size: 0.92rem;
}

.message.success {
    color: var(--success-text);
}

.return-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.return-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.status-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success-text);
    font-size: 0.82rem;
    font-weight: 800;
}

.notice-list {
    display: grid;
    gap: 14px;
}

.notice {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcfe;
}

.notice h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    line-height: 1.3;
}

.notice p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.notice time {
    display: block;
    margin-top: 10px;
    color: #7b8494;
    font-size: 0.8rem;
}

.muted {
    color: var(--muted);
}

.hidden {
    display: none;
}

footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.84rem;
}

@media (max-width: 760px) {
    body {
        padding: 20px;
        place-items: start center;
    }

    .shell {
        grid-template-columns: 1fr;
    }

    .auth-panel,
    .status-panel {
        padding: 24px;
    }
}
