:root {
  color-scheme: light;
  --ink: #183246;
  --muted: #788a95;
  --teal: #087e83;
  --navy: #17384d;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { min-width: 360px; min-height: 100vh; margin: 0; background: #f5f8f9; color: var(--ink); font-size: 14px; line-height: 1.5; }
a { color: inherit; }
button, input { font: inherit; }
.auth-topbar { display: flex; height: 66px; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid #e7edef; background: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; }
.brand-name { display: flex; flex-direction: column; color: #203848; font-size: 14px; font-weight: 800; line-height: 1.15; }
.brand-name span { color: var(--teal); }
.back-link { color: #6f828e; font-size: 12px; text-decoration: none; }
.back-link:hover { color: var(--teal); }
.auth-layout { display: grid; width: min(1030px, calc(100% - 40px)); min-height: calc(100vh - 66px); grid-template-columns: minmax(0, 1fr) minmax(380px, 450px); align-items: center; gap: clamp(35px, 8vw, 90px); margin: 0 auto; padding: 50px 0; }
.auth-aside { position: relative; min-height: 440px; padding: 44px 8px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: 1.15px; }
.eyebrow > span { width: 17px; height: 2px; border-radius: 3px; background: #5eafa6; }
.auth-aside h1 { margin: 0; color: #19374a; font-size: clamp(36px, 4.5vw, 52px); font-weight: 750; letter-spacing: -2px; line-height: 1.1; }
.auth-aside h1 span { color: var(--teal); }
.auth-aside > p:not(.eyebrow) { max-width: 415px; margin: 17px 0 25px; color: #748791; font-size: 14px; line-height: 1.7; }
.aside-points { display: grid; gap: 12px; color: #586e79; font-size: 12px; }
.aside-points > span { display: flex; align-items: center; gap: 9px; }
.aside-points i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #e6f3f0; color: #31857d; font-size: 10px; font-style: normal; font-weight: 700; }
.aside-decoration { position: absolute; right: 17px; bottom: 7px; display: grid; width: 250px; height: 145px; place-items: center; border: 1px solid #e4efed; border-radius: 75px 75px 18px 18px; background: linear-gradient(145deg, #f3faf8, #fbfdfd); opacity: .9; }
.aside-decoration::before, .aside-decoration::after { position: absolute; border: 1px dashed #d9eae7; border-radius: 50%; content: ""; }
.aside-decoration::before { width: 120px; height: 120px; }
.aside-decoration::after { width: 79px; height: 79px; border-style: solid; }
.aside-decoration b { z-index: 1; color: #347f7a; font-size: 24px; letter-spacing: -1px; }
.aside-decoration > span { position: absolute; z-index: 2; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #dcebe8; border-radius: 9px; background: #fff; box-shadow: 0 3px 9px rgb(28 71 74 / 6%); color: #628480; font-size: 10px; font-weight: 700; }
.aside-decoration > span:nth-child(1) { top: 20px; left: 83px; }
.aside-decoration > span:nth-child(2) { top: 54px; right: 34px; }
.aside-decoration > span:nth-child(3) { bottom: 18px; left: 50px; }
.auth-card { overflow: hidden; border: 1px solid #e3eaed; border-radius: 14px; background: #fff; box-shadow: 0 12px 35px rgb(25 55 73 / 7%); }
.auth-tabs { display: grid; height: 53px; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #e8edef; background: #fbfcfc; }
.auth-tabs a { position: relative; display: grid; place-items: center; color: #81909a; font-size: 12px; font-weight: 600; text-decoration: none; }
.auth-tabs a.active { color: #1d7475; }
.auth-tabs a.active::after { position: absolute; right: 28px; bottom: -1px; left: 28px; height: 2px; border-radius: 3px 3px 0 0; background: var(--teal); content: ""; }
.auth-card-content { padding: 27px 29px 20px; }
.section-kicker { margin: 0 0 4px; color: #82929c; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.auth-card h2 { margin: 0; color: #203a4b; font-size: 22px; font-weight: 700; letter-spacing: -.6px; }
.form-intro { margin: 6px 0 19px; color: #7e8f99; font-size: 12px; }
#auth-form { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; color: #405967; font-size: 11px; font-weight: 600; }
.field > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field small { color: #8d9aa2; font-size: 10px; font-weight: 400; }
.field input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #dfe7ea; border-radius: 7px; outline: 0; background: #fff; color: #314b59; font-size: 12px; font-weight: 400; }
.field input::placeholder { color: #a3afb6; }
.field input:focus { border-color: #73b9b3; box-shadow: 0 0 0 3px rgb(8 126 131 / 9%); }
.field[hidden] { display: none; }
.form-message { min-height: 17px; margin: -2px 0 -4px; color: #a74e43; font-size: 11px; line-height: 1.45; }
.form-message.success { color: #357c68; }
.submit-button { display: flex; width: 100%; height: 41px; align-items: center; justify-content: space-between; padding: 0 13px; border: 1px solid var(--teal); border-radius: 7px; background: var(--teal); color: #fff; cursor: pointer; font-size: 12px; font-weight: 600; box-shadow: 0 2px 5px rgb(8 126 131 / 13%); }
.submit-button:hover { border-color: #076b72; background: #076b72; }
.submit-button:disabled { cursor: wait; opacity: .7; }
.submit-button > span:last-child { font-size: 16px; }
.verification-notice { display: flex; align-items: flex-start; gap: 8px; margin: 17px 0 0; padding: 10px; border: 1px solid #efe8d9; border-radius: 7px; background: #fffaf2; color: #897853; font-size: 10px; line-height: 1.5; }
.verification-notice > span { display: grid; width: 14px; height: 14px; flex: 0 0 auto; place-items: center; border: 1px solid #d4b978; border-radius: 50%; font-family: Georgia, serif; font-size: 9px; font-weight: 700; }
.auth-footer { margin: 0; padding: 12px 15px; border-top: 1px solid #edf0f2; color: #8e9ba3; font-size: 10px; text-align: center; }
.auth-footer span { padding: 0 5px; color: #bbc5ca; }

.account-layout { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0; }
.account-card { padding: 28px; border: 1px solid #e3eaed; border-radius: 13px; background: #fff; box-shadow: 0 10px 32px rgb(25 55 73 / 6%); }
.account-card > h1 { margin: 3px 0 6px; color: #203a4b; font-size: 26px; letter-spacing: -.7px; }
.account-intro { margin: 0; color: #788a95; font-size: 13px; }
.account-intro strong { color: #405967; font-weight: 600; }
.account-warning { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; padding: 11px; border: 1px solid #efe8d9; border-radius: 8px; background: #fffaf2; color: #887751; }
.account-warning > span { display: grid; width: 15px; height: 15px; flex: 0 0 auto; place-items: center; border: 1px solid #d4b978; border-radius: 50%; font-family: Georgia, serif; font-size: 9px; font-weight: 700; }
.account-warning p { margin: 0; font-size: 11px; line-height: 1.5; }
.session-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 27px; padding-bottom: 12px; border-bottom: 1px solid #e9eef0; }
.session-heading h2 { margin: 0; color: #304958; font-size: 16px; }
.session-heading p { margin: 3px 0 0; color: #87949c; font-size: 11px; }
.session-list { display: grid; gap: 8px; margin-top: 12px; }
.session-item { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid #e8edef; border-radius: 8px; }
.session-device-icon { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #edf4f5; color: #4c7a82; font-size: 13px; }
.session-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.session-copy strong { color: #435a67; font-size: 12px; font-weight: 600; }
.session-copy small { color: #89969e; font-size: 10px; overflow-wrap: anywhere; }
.current-session { padding: 4px 6px; border-radius: 5px; background: #eaf5f2; color: #43857a; font-size: 9px; font-weight: 600; white-space: nowrap; }
.session-revoke { padding: 6px 8px; border: 1px solid #e4e9ec; border-radius: 6px; background: #fff; color: #778791; cursor: pointer; font-size: 10px; }
.session-revoke:hover { border-color: #e6c9c2; background: #fff9f8; color: #a45144; }
.account-message { min-height: 19px; margin: 8px 0 0; color: #a64f43; font-size: 11px; }
.account-message.success { color: #357c68; }
.account-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 13px; border-top: 1px solid #edf0f2; }
.small-button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 600; text-decoration: none; }
.quiet-button { border-color: #e1e8eb; background: #fff; color: #5d727e; }
.primary-button { border-color: var(--teal); background: var(--teal); color: #fff; }
.primary-button:hover { background: #076b72; }
.danger-button { border-color: #f0ddda; background: #fff9f8; color: #a15347; }
.danger-button:hover { border-color: #e7c6c0; background: #fff3f1; }
.small-button:disabled, .session-revoke:disabled { cursor: wait; opacity: .55; }

@media (max-width: 760px) {
  .auth-topbar { height: 58px; padding: 0 15px; }
  .auth-layout { width: min(450px, calc(100% - 26px)); min-height: calc(100vh - 58px); grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .auth-aside { min-height: 0; padding: 12px 5px 10px; }
  .auth-aside h1 { font-size: 32px; }
  .auth-aside > p:not(.eyebrow) { margin: 9px 0 12px; font-size: 12px; }
  .aside-points { grid-template-columns: 1fr 1fr; gap: 7px; font-size: 10px; }
  .aside-points > span:last-child { display: none; }
  .aside-decoration { display: none; }
  .auth-card-content { padding: 22px 20px 17px; }
  .account-layout { padding: 28px 0; }
  .account-card { padding: 19px 15px; }
  .session-heading { align-items: flex-start; flex-direction: column; }
  .session-heading .small-button { align-self: flex-end; }
  .session-item { gap: 7px; padding: 10px 8px; }
  .session-revoke { padding: 6px; font-size: 9px; }
}
