.auth-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;min-height:100dvh;padding:26px 0 48px}
.auth-header{display:flex;justify-content:flex-start}
.auth-main{width:min(100%,460px);margin:clamp(24px,6vh,64px) auto 0}
.auth-brand{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:24px;font-size:1.65rem;font-weight:850;letter-spacing:-.04em}
.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:32px;box-shadow:var(--shadow)}
.auth-card h1{font-size:1.65rem;letter-spacing:-.035em;line-height:1.25;margin:0 0 8px}
.auth-card>p:first-of-type{color:var(--muted);font-size:1rem;line-height:1.6;margin:0 0 24px}
.auth-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--paper);margin-bottom:22px}
.auth-tabs button{flex:1;border:0;background:transparent;color:var(--muted);font-size:.95rem;font-weight:750;border-radius:9px;min-height:42px}
.auth-tabs button[aria-pressed=true]{color:var(--ink);background:var(--surface);box-shadow:0 2px 8px #0000000c}
.auth-remember{display:flex;align-items:center;gap:10px;margin:0 0 20px;color:var(--ink);font-size:.95rem;font-weight:600;line-height:1.5;cursor:pointer}
.auth-remember input{width:18px;height:18px;margin:0;flex-shrink:0;accent-color:var(--cyan-dark);cursor:pointer}
.auth-remember input:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
.auth-google{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:50px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:var(--surface);font-weight:750;font-size:1rem}
.auth-google:hover{border-color:var(--cyan)}
.google-letter{font-family:Arial,sans-serif;color:#4285f4;font-size:1.5rem;font-weight:800}
.auth-divider{display:flex;align-items:center;gap:12px;margin:22px 0;color:var(--muted);font-size:.875rem}
.auth-divider::before,.auth-divider::after{content:'';height:1px;background:var(--line);flex:1}
.auth-field{display:flex;flex-direction:column;gap:8px;font-size:.95rem;font-weight:700;margin-bottom:18px}
.auth-field[hidden],.auth-password-hint[hidden],.auth-message[hidden]{display:none}
.auth-field input{width:100%;min-height:50px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font-size:1rem;font-weight:400;outline:none}
.auth-field input:focus{border-color:var(--cyan);box-shadow:0 0 0 3px #15b7c820}
.auth-password{position:relative;display:flex}
.auth-password input{padding-right:88px}
.auth-password button{position:absolute;right:6px;top:5px;bottom:5px;border:0;background:transparent;color:var(--cyan-dark);font-size:.875rem;font-weight:700;padding:0 10px}
.auth-password-hint{font-size:.875rem;color:var(--muted);margin:-8px 0 18px;line-height:1.5}
.auth-submit{width:100%;justify-content:center;min-height:50px;font-size:1rem}
.auth-link{display:block;margin:16px auto 0;padding:6px;border:0;background:transparent;color:var(--cyan-dark);font-size:.95rem;font-weight:700}
.auth-message{padding:12px 14px;margin:18px 0 0;border-radius:10px;background:var(--wrong-bg);color:var(--wrong);font-size:.95rem;line-height:1.55}
.auth-message[data-success=true]{background:var(--correct-bg);color:var(--correct)}
.auth-card button:disabled{cursor:wait;opacity:.6}
.auth-account{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:-6px 0 20px;font-size:.9rem;color:var(--muted)}
.auth-account-name{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auth-account .ghost-button{min-height:36px;font-size:.875rem;padding:7px 12px;text-decoration:none}
.admin-heading{margin:30px 0 22px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.admin-heading h1{font-size:2rem;letter-spacing:-.045em;margin:0 0 8px}
.admin-heading p{color:var(--muted);margin:0;line-height:1.6}
.admin-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:24px 0}
.admin-search{display:flex;gap:10px;flex:1;max-width:560px}
.admin-search input{min-width:0;flex:1;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:12px 14px;color:var(--ink);font-size:1rem}
.admin-count{font-size:1rem;color:var(--muted);font-weight:700}
.admin-table-wrap{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow-x:auto}
.admin-table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:850px}
.admin-table th{text-align:left;color:var(--muted);font-size:.875rem;background:var(--paper);font-weight:750}
.admin-table th,.admin-table td{padding:16px 18px;border-bottom:1px solid var(--line);line-height:1.55;vertical-align:top}
.admin-table tr:last-child td{border-bottom:0}
.admin-email{color:var(--ink);word-break:break-word}
.admin-badge{display:inline-block;padding:3px 9px;border-radius:7px;background:var(--paper);border:1px solid var(--line);font-size:.875rem;white-space:nowrap}
.admin-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0;font-size:.95rem;color:var(--muted)}
.admin-empty{padding:38px;text-align:center;color:var(--muted);font-size:1rem;line-height:1.6}
.admin-error{border:1px solid var(--wrong);background:var(--wrong-bg);color:var(--wrong);padding:16px;border-radius:12px;line-height:1.6}
[data-theme=dark] .auth-tabs{background:var(--paper)}
[data-theme=dark] .google-letter{color:#8ab4f8}
[data-theme=dark] .auth-password button,[data-theme=dark] .auth-link{color:var(--cyan)}
@media(max-width:600px){.auth-card{padding:24px;border-radius:20px}.auth-main{margin-top:28px}.auth-brand{font-size:1.5rem}.auth-account{justify-content:flex-start}.admin-heading{align-items:flex-start}.admin-search{max-width:none;width:100%}.admin-toolbar{align-items:stretch}}

.auth-link[hidden]{display:none}
