:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #183347; background: #f0f4f6; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
a { color: #176d7d; text-underline-offset: 3px; }
button, input { font: inherit; }
button, .primary { cursor: pointer; }
.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.1fr); }
.auth-intro { background: #183347; color: #fff; padding: clamp(32px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.wordmark { font-size: 14px; font-weight: 750; letter-spacing: .16em; text-decoration: none; color: inherit; }
.auth-intro h1 { font-size: clamp(30px, 3vw, 46px); line-height: 1.12; letter-spacing: -.03em; margin: 50px 0 20px; max-width: 450px; }
.auth-intro p { color: #bdd0d9; line-height: 1.7; max-width: 400px; }
.intro-points { display: grid; gap: 18px; margin-top: 38px; color: #d5e5eb; font-size: 14px; }
.intro-points span::before { content: "✓"; color: #6bd0c5; margin-right: 12px; }
.auth-main { padding: 42px 24px; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; }
.eyebrow { font-size: 12px; font-weight: 700; color: #597485; letter-spacing: .1em; text-transform: uppercase; }
.auth-card h2, .account-shell h1 { margin: 10px 0; font-size: 28px; letter-spacing: -.025em; }
.muted { color: #5b7180; font-size: 14px; line-height: 1.6; }
form { display: grid; gap: 17px; margin-top: 28px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
input { width: 100%; border: 1px solid #c6d4dc; border-radius: 9px; padding: 12px 14px; color: #183347; background: #fff; min-height: 46px; font-size: 16px; }
input:focus { outline: 3px solid #167d8d22; border-color: #167d8d; }
input[readonly] { background: #e8eff2; }
label small { color: #597485; font-size: 12px; font-weight: 400; line-height: 1.5; }
button, .primary { min-height: 46px; border: 1px solid #c6d4dc; border-radius: 9px; padding: 11px 17px; background: white; color: #183347; font-weight: 650; }
button:focus-visible, a:focus-visible { outline: 3px solid #167d8d; outline-offset: 3px; }
.primary { background: #167080; color: white; border-color: #167080; text-align: center; text-decoration: none; }
.primary:hover { background: #105d6b; }
button:disabled { opacity: .55; cursor: wait; }
.auth-footer { margin-top: 24px; font-size: 14px; }
.form-message { border-radius: 9px; padding: 12px 14px; color: #973b25; background: #fbeae3; font-size: 14px; line-height: 1.5; }
[hidden] { display: none !important; }
.account-shell { width: min(900px, 100%); margin: 0 auto; padding: 32px 24px 60px; }
.account-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }
.account-panel { padding: 24px; background: white; border: 1px solid #d7e1e6; border-radius: 14px; margin-top: 24px; }
.account-panel h2 { margin: 0 0 10px; font-size: 20px; }
.invite-form { grid-template-columns: 1fr auto; align-items: end; }
.member { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid #e0e8ec; }
.member:first-child { border-top: 0; }
.member strong, .member span { display: block; overflow-wrap: anywhere; }
.member span { margin-top: 5px; font-size: 13px; color: #597485; }
.invite-result { display: grid; gap: 10px; margin-top: 18px; padding: 16px; background: #edf7f6; border-radius: 9px; }
.invite-result input { font-size: 13px; }
@media(max-width: 760px) {
  .auth-shell { display: block; }
  .auth-intro { padding: 24px; }
  .auth-intro h1 { font-size: 28px; margin: 24px 0 10px; }
  .auth-intro p { margin: 0; font-size: 14px; }
  .intro-points { display: none; }
  .auth-main { padding: 30px 24px 48px; }
  .auth-card { max-width: 480px; }
  .auth-card h2 { font-size: 25px; }
  .account-shell { padding: 24px 16px 40px; }
  .account-panel { padding: 18px; }
  .invite-form { grid-template-columns: 1fr; }
}
