/* Security Inside welcome page, independent of workspace styles. */
:root {
  color-scheme: light;
  --page: #fff; --ink: #17334f; --muted: #677b8e; --faint: #788997;
  --border: #dce5ec; --input: #f8fafc; --focus: #138ca5; --soft: #eaf6f9;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0e1d2c; --ink: #e9f1f8; --muted: #a0b3c5; --faint: #93a7b9;
  --border: #2c4052; --input: #142638; --focus: #4cc8dc; --soft: #163445;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.welcome-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; }
.brand-panel { isolation: isolate; position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 40px clamp(32px, 4.6vw, 88px) 32px; color: #fff; background: radial-gradient(ellipse at 100% 100%, #137e97 0%, transparent 60%), linear-gradient(145deg, #173f68 0%, #103454 65%, #11516d 100%); }
.brand-panel::after { position: absolute; inset: 0; z-index: -1; content: ""; opacity: .11; background-image: radial-gradient(#b4d8e6 .65px, transparent .65px); background-size: 24px 24px; mask-image: linear-gradient(150deg, transparent 25%, #000); }
.brand-header { display: flex; align-items: center; gap: 16px; z-index: 1; }
.brand-logo { display: flex; align-items: center; background: #fff; border-radius: 6px; padding: 6px 9px; width: 140px; flex-shrink: 0; box-shadow: 0 6px 24px #082b4820; }
.brand-logo img { display: block; width: 100%; height: auto; }
.brand-product { padding-left: 16px; border-left: 1px solid #ffffff35; color: #d4e4f0; font-size: 10px; line-height: 1.65; letter-spacing: .6px; }
.brand-content { position: relative; z-index: 1; margin: auto 0; padding: 76px 0 96px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 600; letter-spacing: 2.2px; color: #9cdbe7; margin-bottom: 25px; }
.eyebrow span { width: 6px; height: 6px; background: #68d5e4; border-radius: 50%; box-shadow: 0 0 0 4px #68d5e410; }
h1 { font-size: clamp(32px, 3.2vw, 56px); line-height: 1.4; font-weight: 650; letter-spacing: -1.8px; margin: 0; word-break: keep-all; }
h1 span { color: #78d9e6; }
.brand-description { color: #c5d9e6; font-size: 16px; line-height: 1.85; white-space: pre-line; word-break: keep-all; margin: 24px 0 0; }
.feature-list { margin: 38px 0 0; padding: 30px 0 0; list-style: none; border-top: 1px solid #ffffff20; display: grid; gap: 18px; max-width: 470px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.65; color: #e3edf5; word-break: keep-all; }
.feature-list svg { width: 17px; height: 17px; color: #77d4e2; }
.brand-orbit { position: absolute; z-index: -1; width: 650px; height: 650px; border: 1px solid #7cd8e41c; border-radius: 50%; pointer-events: none; }
.orbit-one { right: -370px; bottom: -325px; box-shadow: 0 0 0 65px #77cfdf05, 0 0 0 130px #77cfdf04; }
.orbit-two { width: 500px; height: 500px; right: -340px; top: -335px; }
.login-panel { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 34px clamp(28px, 4vw, 72px) 28px; background: var(--page); }
.preferences { width: 100%; display: flex; justify-content: flex-end; gap: 8px; }
.preference-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 30px; min-height: 34px; padding: 7px 12px; font-size: 11px; }
.preference-button svg { width: 14px; height: 14px; }
.preference-button:hover { border-color: var(--focus); color: var(--focus); }
[data-theme="light"] .theme-moon, [data-theme="dark"] .theme-sun { display: none; }
.login-content { width: 100%; max-width: 380px; margin: auto 0; padding: 54px 0 48px; }
.login-mark { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; color: var(--focus); background: var(--soft); border: 1px solid #159fba18; border-radius: 13px; margin-bottom: 24px; }
.login-mark svg { width: 23px; height: 23px; }
.login-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.7px; color: var(--focus); margin: 0 0 10px; }
h2 { font-size: 30px; line-height: 1.3; letter-spacing: -.8px; font-weight: 700; margin: 0; }
.login-description { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 13px 0 31px; word-break: keep-all; }
.login-form { display: grid; gap: 20px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.form-field input { width: 100%; min-width: 0; height: 49px; background: var(--input); color: var(--ink); border: 1px solid var(--border); border-radius: 7px; padding: 0 14px; font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.form-field input::placeholder { color: var(--faint); opacity: 1; }
.form-field input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px #159fba18; }
.password-field { position: relative; }
.password-field input { padding-right: 49px; }
.password-toggle { position: absolute; right: 4px; top: 4px; width: 41px; height: 41px; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 0; border-radius: 5px; background: transparent; }
.password-toggle:hover, .password-toggle[aria-pressed="true"] { color: var(--focus); background: var(--soft); }
.password-toggle svg { width: 18px; height: 18px; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 49px; margin-top: 5px; border: 0; border-radius: 7px; background: #153f6b; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 4px 10px #153f6b12; transition: background .15s; }
.login-submit:hover { background: #116b87; }
.login-submit svg { width: 17px; height: 17px; }
[data-theme="dark"] .login-submit { background: #16829b; }
[data-theme="dark"] .login-submit:hover { background: #1795af; }
.password-reset { display: block; width: fit-content; margin: 20px auto 0; color: var(--muted); font-size: 12px; text-underline-offset: 4px; }
.password-reset:hover { color: var(--focus); text-decoration: underline; }
.security-note { display: flex; align-items: flex-start; gap: 8px; padding-top: 22px; margin: 25px 0 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 10.5px; line-height: 1.8; word-break: keep-all; }
.security-note svg { width: 13px; height: 13px; margin-top: 3px; }
.account-help { margin: 28px 0 0; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.8; }
.account-help span { color: var(--ink); }
.login-footer { color: var(--faint); font-size: 10px; text-align: center; }
.login-error { padding: 12px 14px; margin-bottom: 20px; border: 1px solid #dc7777; border-radius: 7px; background: #fff1f1; color: #a42c2c; font-size: 13px; line-height: 1.6; }
[data-theme="dark"] .login-error { color: #ffb4b4; background: #42232b; }
@media (min-width: 1600px) { .login-content { max-width: 400px; } }
@media (max-width: 1050px) {
  .brand-panel { padding-left: 32px; padding-right: 32px; }
  .brand-product { font-size: 10px; padding-left: 14px; }
  .brand-header { gap: 14px; }
  .brand-logo { width: 120px; }
  h1 { font-size: 34px; letter-spacing: -1.4px; }
  .brand-description { font-size: 14px; }
  .feature-list li { font-size: 12px; }
}
@media (max-width: 760px) {
  .welcome-layout { grid-template-columns: 1fr; }
  .brand-panel { padding: 27px 28px 31px; }
  .brand-logo { width: 112px; padding: 5px 8px; }
  .brand-content { padding: 40px 0 0; }
  .eyebrow { margin-bottom: 15px; font-size: 9px; }
  h1 { font-size: clamp(29px, 6vw, 40px); line-height: 1.4; }
  .brand-description { margin-top: 16px; font-size: 13px; }
  .feature-list { display: none; }
  .login-panel { padding: 22px 28px 25px; }
  .login-content { padding-top: 32px; padding-bottom: 38px; max-width: 420px; }
  .login-mark { display: none; }
  .login-description { margin-bottom: 26px; }
  .preferences { max-width: 420px; }
  .account-help { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
