.auth-body { margin: 0; font-size: 16px; color: var(--ink); background: var(--canvas); }
.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.auth-sidebar { padding: 30px 26px; display: flex; flex-direction: column; color: #f2ede3; background: var(--sidebar); }
.auth-sidebar .brand { padding: 0; border: 0; }
.auth-sidebar .brand img { width: 160px; }
.auth-sidebar-title { margin: 65px 0 35px; }
.auth-sidebar-title > span, .auth-sidebar-footer > span { font: 700 12px/1.5 ui-monospace, monospace; letter-spacing: .1em; color: #c4b5a7; }
.auth-sidebar-title strong { display: block; margin: 15px 0; font: 500 30px/1.2 Georgia, serif; }
.auth-sidebar-title p { color: #c4bdb3; font-size: 14px; line-height: 1.7; }
.auth-nav { display: grid; gap: 6px; }
.auth-nav a { padding: 12px; border: 1px solid transparent; text-decoration: none; color: #d5ccc1; font-size: 14px; }
.auth-nav a[aria-current] { border-color: #675447; background: #3a322c; color: #f3d1b9; }
.auth-sidebar-footer { margin-top: auto; padding-top: 50px; }
.auth-sidebar-footer strong, .auth-sidebar-footer small { display: block; margin-top: 8px; }
.auth-sidebar-footer strong { font-size: 16px; }
.auth-sidebar-footer small { font-size: 14px; color: #c4bdb3; }
.auth-work { min-width: 0; display: flex; flex-direction: column; }
.auth-topbar { position: static; min-height: 72px; padding: 15px 32px; border-bottom: 1px solid var(--line); }
.auth-topbar > span { font: 700 14px/1.5 ui-monospace, monospace; color: var(--muted); }
.auth-topbar .icon-button { font-size: 14px; min-height: 42px; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 52px 32px; }
.auth-paper { position: relative; width: min(100%, 480px); padding: 40px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.auth-paper::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.auth-kicker { color: var(--accent); font: 700 12px/1.5 ui-monospace, monospace; letter-spacing: .08em; }
.auth-document-header { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.auth-document-header h1 { margin: 16px 0 12px; font: 500 clamp(28px, 3vw, 38px)/1.15 Georgia, serif; }
.auth-paper p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 12px; font-size: 14px; font-weight: 650; }
.auth-form input { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--ink); background: var(--paper-2); font: inherit; }
.auth-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-body .button { min-height: 44px; font-size: 14px; padding: 12px 16px; line-height: 1.4; white-space: normal; }
.auth-form .button { margin-top: 16px; }
.auth-notice { padding: 14px 16px; margin-bottom: 22px !important; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink) !important; }
.auth-notice.success { background: var(--green-soft); border-color: var(--green); }
.auth-back { display: inline-block; margin-top: 24px; color: var(--accent); font-size: 14px; }
.auth-management { align-items: flex-start; }
.auth-management .auth-paper { width: min(100%, 1000px); }
.auth-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.auth-card { min-width: 0; padding: 24px; border: 1px solid var(--line); background: var(--paper-2); }
.auth-card h2 { margin: 10px 0 8px; font: 500 25px/1.2 Georgia, serif; }
.auth-card p { font-size: 14px; }
.auth-card .auth-form { margin-top: 18px; }
.auth-management-footer { margin-top: 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-footer { padding: 20px 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.auth-body a:focus-visible, .auth-body button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1000px) { .auth-shell { grid-template-columns: 205px minmax(0, 1fr); } .auth-admin-grid { grid-template-columns: 1fr; } .auth-paper { padding: 30px; } }
@media (max-width: 650px) { .auth-shell { grid-template-columns: 1fr; } .auth-sidebar { padding: 16px 20px; } .auth-sidebar .brand img { width: 125px; } .auth-sidebar-title, .auth-sidebar-footer, .auth-nav { display: none; } .auth-topbar { padding: 12px 20px; gap: 10px; } .auth-main { padding: 26px 16px; } .auth-paper { padding: 28px 24px; } .auth-card { padding: 20px; } .auth-footer { padding: 16px 20px; } }

.auth-shell.auth-shell-simple { grid-template-columns: minmax(0, 1fr); }
