body.login-page { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 28px 24px; background: var(--card, #fff); color: var(--foreground, #172b3e); }
.login-layout { width: 100%; max-width: 1440px; margin: auto; }
.login-form-section { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.login-form-section > .login-card { width: 100%; max-width: 400px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 44px; }
.auth-brand__name { color: var(--foreground, #173149); font-size: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -.045em; }
.auth-brand__portal { color: var(--muted-foreground, #64748b); font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.auth-heading { margin-bottom: 18px; }
.auth-eyebrow { display: block; margin-bottom: 8px; color: var(--primary, #4285f4); font-size: 10px; line-height: 1.4; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.login-card h1 { margin: 0; color: var(--foreground, #173149); font-size: clamp(28px, 3vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.auth-heading > p, .verification-card > p { margin: 10px 0 0; color: var(--muted-foreground, #64748b); font-size: 14px; line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > label, .auth-field > span { color: var(--foreground, #173149); font-size: 13px; font-weight: 500; }
.auth-field input { display: block; width: 100%; min-height: 48px; border: 1px solid var(--border, #dce3eb); border-radius: 8px; padding: 12px 14px; background: var(--background, #f9fafb); color: var(--foreground, #173149); font: inherit; font-size: 14px; box-shadow: none; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth-field input:focus { border-color: var(--primary, #4285f4); box-shadow: 0 0 0 3px #4285f41a; }
.auth-field input::placeholder { color: var(--muted-foreground, #94a3b8); opacity: .75; }
.auth-submit, .verification-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 1px solid transparent; border-radius: 8px; padding: 12px 18px; background: #173b57; color: #fff; font-size: 14px; line-height: 1.4; font-weight: 500; cursor: pointer; transition: background .15s; }
.auth-submit:hover, .verification-button:hover { background: #245171; }
.auth-submit:disabled, .verification-button:disabled { opacity: .6; cursor: wait; }
.auth-reset-link { align-self: flex-end; margin-top: -4px; color: var(--muted-foreground, #64748b); font-size: 12px; }
.auth-link, .auth-back-link, .verification-secondary { color: var(--primary, #4285f4); font-size: 13px; font-weight: 500; }
.auth-link:hover, .auth-back-link:hover, .auth-reset-link:hover, .verification-secondary:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; }
.auth-back-link svg { width: 15px; height: 15px; }
.auth-footer { width: 100%; max-width: 400px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border, #e5e7eb); color: var(--muted-foreground, #64748b); }
.auth-footer p { margin: 0; font-size: 11px; line-height: 1.8; }
.auth-state { margin-top: 14px; padding: 16px; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; background: var(--background, #f9fafb); }
.auth-state h2 { margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.auth-state p { color: var(--muted-foreground, #64748b); font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.verification-card .verification-button { margin-top: 16px; }
.verification-card > .verification-address { color: var(--foreground); font-weight: 500; }
.verification-card > .verification-small { font-size: 12px; }
.login-card .verification-small { color: var(--muted-foreground, #64748b); font-size: 12px; line-height: 1.7; }
.verification-secondary { display: inline-block; margin-top: 14px; }
.auth-profile-toolbar { position: absolute; top: 16px; right: 16px; z-index: 40; }
.auth-profile-toolbar .profile-menu__trigger-name { display: none; }
.auth-profile-toolbar .profile-menu__panel { position: fixed; top: 68px; right: 16px; }
.login-page :is(a, button, input):focus-visible { outline: 2px solid var(--primary, #4285f4); outline-offset: 3px; }
.login-welcome { display: none; }

@media (min-width: 1024px) {
  body.login-page { padding: 0; }
  .login-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; padding: 24px 32px; gap: 48px; margin: 0 auto; }
  .login-form-section { padding: 24px 32px; }
  .auth-brand { margin-bottom: 48px; }
  .login-welcome { display: flex; flex-direction: column; justify-content: space-between; position: relative; isolation: isolate; height: calc(100vh - 48px); height: calc(100svh - 48px); overflow: hidden; border-radius: 24px; background: #152a41; color: #fff; padding: 40px; }
  .login-welcome__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
  .login-welcome__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 27, 45, .45), rgba(10, 27, 45, .05) 30%, rgba(10, 27, 45, .8) 72%, #0a1b2ded); }
  .login-welcome__brand { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.04em; }
  .login-welcome__brand span { display: block; margin-top: 8px; font-size: 10px; line-height: 1.4; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; color: #ffffffb3; }
  .login-welcome__content { position: relative; max-width: 430px; }
  .login-welcome__eyebrow { display: block; margin-bottom: 16px; font-size: 10px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: #d8e8fa; }
  .login-welcome h2 { margin: 0; font-size: clamp(34px, 3.5vw, 54px); line-height: 1.08; font-weight: 500; letter-spacing: -.055em; text-wrap: balance; }
  .login-welcome__content > p { max-width: 345px; margin-top: 20px; font-size: 14px; line-height: 1.8; color: #ffffffc9; }
  .login-welcome__footer { display: flex; align-items: center; gap: 12px; margin-top: 32px; font-size: 11px; line-height: 1.5; color: #ffffffa6; }
  .login-welcome__line { width: 28px; height: 1px; background: #ffffff80; }
}

@media (min-width: 1440px) {
  .login-layout { gap: 64px; }
  .login-welcome { padding: 48px; }
}
@media (max-width: 380px) {
  body.login-page { padding: 24px 20px; }
  .auth-brand { margin-bottom: 32px; }
}

.login-page .login-welcome__continue { display: none !important; }
@media (max-width: 1023px) {
  body[data-mobile-login][data-login-step="welcome"] { padding: 16px; }
  [data-mobile-login][data-login-step="welcome"] .login-form-section,
  [data-mobile-login][data-login-step="form"] .login-welcome { display: none; }
  [data-mobile-login][data-login-step="welcome"] .login-welcome { display: flex; flex-direction: column; justify-content: space-between; position: relative; isolation: isolate; min-height: calc(100svh - 32px); overflow: hidden; border-radius: 20px; background: #152a41; color: #fff; padding: 28px 24px; gap: 56px; }
  [data-mobile-login] .login-welcome__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
  [data-mobile-login] .login-welcome__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0a1b2d66, #0a1b2d33 25%, #0a1b2ddd 70%, #0a1b2df5); }
  [data-mobile-login] .login-welcome__brand { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.04em; }
  [data-mobile-login] .login-welcome__brand span { display: block; margin-top: 8px; font-size: 10px; font-weight: 400; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; color: #ffffffb3; }
  [data-mobile-login] .login-welcome__eyebrow { display: block; margin-bottom: 14px; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #d8e8fa; }
  [data-mobile-login] .login-welcome h2 { margin: 0; font-size: clamp(36px, 9vw, 56px); line-height: 1.08; font-weight: 500; letter-spacing: -.045em; }
  [data-mobile-login] .login-welcome__content > p { max-width: 420px; margin-top: 18px; font-size: 14px; line-height: 1.7; color: #ffffffc9; }
  [data-mobile-login] .login-welcome__continue { display: flex !important; margin-top: 28px; min-height: 48px !important; }
  [data-mobile-login] .login-welcome__footer { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 11px; line-height: 1.5; color: #ffffffa6; }
  [data-mobile-login] .login-welcome__line { width: 24px; height: 1px; flex-shrink: 0; background: #ffffff80; }
}
