:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  --bg: #0d141e;
  --panel: #111b28;
  --line: #344456;
  --text: #eff4f9;
  --muted: #9dacc1;
  --accent: #e9b46d;
  --accent-dark: #2d251c;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid #efc684; outline-offset: 3px;
}
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); min-height: 100vh; }
.brand-panel {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 100vh; padding: 38px clamp(28px, 5vw, 86px) 30px;
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 450px 430px at 74% 42%, #325d6250, transparent 75%),
    radial-gradient(ellipse 500px 480px at -15% 75%, #9b69312b, transparent 72%),
    linear-gradient(145deg, #192b37, #101923 68%, #111721);
  border-right: 1px solid #334252;
}
.brand-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(120deg, transparent 10%, #0008 100%);
}
.brand-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-link { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-symbol { display: grid; place-items: center; color: var(--accent); width: 38px; height: 38px; }
.brand-wordmark { display: grid; gap: 2px; letter-spacing: .16em; }
.brand-wordmark strong { font-size: 16px; font-weight: 800; letter-spacing: .16em; }
.brand-wordmark span { color: #a3b2c2; letter-spacing: .28em; font-size: 9px; font-weight: 750; }
.brand-library-link { font-size: 12px; font-weight: 650; text-decoration: none; color: #c4d2e1; white-space: nowrap; }
.brand-library-link:hover { color: #f9c780; }
.brand-content { padding: 54px 0; max-width: 590px; }
.brand-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 750; color: #cfdeea; letter-spacing: .19em; }
.brand-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e9b46d; box-shadow: 0 0 12px #e9b46d70; }
.brand-content h1 { margin: 23px 0 20px; font-size: clamp(40px, 4.4vw, 67px); line-height: 1.06; font-weight: 800; letter-spacing: -.055em; max-width: 580px; }
.brand-content h1 em { font-style: normal; color: var(--accent); }
.brand-content > p { max-width: 430px; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.8; color: #b9c8d7; }
.brand-wave { display: flex; align-items: center; gap: 7px; height: 140px; max-width: 470px; padding: 18px 0; margin-top: clamp(18px, 3vw, 42px); opacity: .84; }
.brand-wave span {
  flex: 1 1 0; height: var(--h); max-height: 100%; min-height: 8px; border-radius: 999px;
  background: linear-gradient(180deg, #edbe78, #b77e43 50%, #6b7885);
  box-shadow: 0 0 15px #e7b56a12;
}
.brand-benefits { display: grid; gap: 24px; margin-top: clamp(12px, 2.6vw, 34px); }
.brand-benefits > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 18px; row-gap: 4px; align-items: baseline; }
.brand-benefits > div > span { grid-row: 1 / 3; color: var(--accent); font-size: 12px; font-weight: 750; }
.brand-benefits strong { font-size: 14px; font-weight: 710; letter-spacing: .005em; }
.brand-benefits small { font-size: 12px; color: #a2b5c7; line-height: 1.55; }
.brand-bottom { display: flex; justify-content: space-between; gap: 14px; color: #8a9cab; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.brand-bottom span:last-child { color: #dfb276; }
.auth-main {
  display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 100vh;
  padding: 44px clamp(22px, 5.5vw, 82px); background: #0e151f;
}
.auth-column { width: 100%; max-width: 468px; }
.auth-mobile-top { display: none; }
.auth-card { width: 100%; }
.auth-eyebrow { color: var(--accent); font-weight: 760; font-size: 10px; letter-spacing: .19em; margin-bottom: 14px; }
.auth-card h2 { font-size: clamp(29px, 3vw, 41px); font-weight: 780; letter-spacing: -.045em; line-height: 1.12; margin: 0 0 12px; }
.auth-intro { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0 0 32px; }
.auth-form { display: grid; gap: 19px; }
.auth-field { min-width: 0; }
.auth-field label { display: inline-block; color: #dce6f0; font-size: 13px; font-weight: 650; margin-bottom: 9px; }
.auth-field label span[aria-hidden] { color: #d9ae75; }
.auth-field > input, .password-field {
  width: 100%; min-width: 0; min-height: 51px; border: 1px solid var(--line); border-radius: 10px;
  background: #131e2b; color: var(--text); transition: border-color .16s, background .16s, box-shadow .16s;
}
.auth-field > input { padding: 12px 15px; font-size: 15px; }
.auth-field input::placeholder { color: #8192a6; }
.auth-field > input:hover, .password-field:hover { border-color: #5a718a; }
.auth-field > input:focus, .password-field:focus-within {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px #dfaa5925;
}
.password-field { display: flex; align-items: center; }
.password-field input {
  width: 100%; height: 49px; min-width: 0; flex: 1 1 auto; padding: 11px 14px;
  background: transparent; border: 0; outline: none; color: var(--text); font-size: 15px;
}
.password-field input:focus { outline: none; }
.password-toggle {
  align-self: stretch; flex: 0 0 auto; margin: 5px 6px 5px 0; padding: 0 10px;
  background: transparent; border: 0; color: #c7d6e6; border-radius: 7px; font-size: 12px; font-weight: 640;
}
.password-toggle:hover { background: #2b3b4d; color: #fff; }
.auth-field--error > input, .auth-field--error .password-field { border-color: #df8078; }
.field-error { margin: 7px 0 0; font-size: 12px; line-height: 1.5; color: #ffb4ab; }
.field-hint { margin: 8px 0 0; color: #8f9fb1; font-size: 11px; line-height: 1.6; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-heading a { color: #e7b978; font-size: 12px; text-decoration: none; }
.field-heading a:hover { text-decoration: underline; }
.auth-check { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: #bdcadd; cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: #d9a65b; }
.auth-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 13px;
  width: 100%; min-height: 54px; padding: 13px 18px; border-radius: 10px;
  border: 1px solid #e7b777; background: linear-gradient(110deg, #f3bf7d, #dba45b);
  color: #201911; font-weight: 790; font-size: 14px; text-decoration: none;
  box-shadow: 0 12px 30px #c78b3525; transition: transform .16s, box-shadow .16s, filter .16s;
}
.auth-submit span[aria-hidden] { font-size: 20px; line-height: 1; }
.auth-submit:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 16px 34px #c78b3540; }
.auth-submit:active { transform: translateY(0); }
.auth-submit--link { margin-top: 20px; }
.signup-note { margin: 0; color: #96a6b8; font-size: 12px; line-height: 1.75; }
.signup-note span[aria-hidden] { margin-right: 6px; color: #e3b16d; }
.auth-separator { display: flex; align-items: center; gap: 12px; margin: 29px 0 20px; color: #8d9baf; font-size: 12px; }
.auth-separator::before, .auth-separator::after { content: ""; height: 1px; background: #293746; flex: 1; }
.auth-secondary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 47px; padding: 11px 15px; font-size: 13px; font-weight: 650; text-decoration: none;
  border-radius: 9px; border: 1px solid #485b70; color: #e8f0f7; background: #1b2938;
}
.auth-secondary:hover { border-color: #d6a765; background: #243447; }
.auth-secondary span[aria-hidden] { font-size: 18px; }
.auth-alert, .auth-info {
  border: 1px solid #784c48; border-radius: 11px; padding: 15px 17px;
  background: #46292a80; color: #f6c6be; line-height: 1.6; font-size: 13px; margin-bottom: 24px;
}
.auth-alert p { margin: 0; }
.auth-alert p + p { margin-top: 8px; }
.auth-info { border-color: #506454; background: #1b302b; color: #ccdfd1; }
.auth-info strong { display: block; margin-bottom: 10px; color: #e3f0e7; }
.auth-info p { margin: 0; overflow-wrap: anywhere; }
.auth-info ol { margin: 4px 0 0; padding-left: 21px; }
.auth-info li + li { margin-top: 9px; }
.auth-success-icon {
  display: grid; place-items: center; width: 70px; height: 70px; border-radius: 17px;
  background: #26423b; border: 1px solid #537665; color: #b7e1c9; margin-bottom: 20px;
}
.auth-bottom { margin: 36px 0 0; color: #718299; font-size: 11px; line-height: 1.6; text-align: center; }
.auth-bottom span { margin: 0 8px; }
.auth-bottom a { color: #acbdd0; text-decoration: none; }
.auth-bottom a:hover { color: #f3bf7d; }
.auth-messages { margin-bottom: 20px; }
.auth-message { font-size: 12px; line-height: 1.6; margin: 0; color: #bfdec9; border: 1px solid #42604c; border-radius: 9px; padding: 11px 13px; background: #21372d; }
.auth-message--error, .auth-message--warning { background: #42292a; border-color: #795250; color: #fac4bb; }
@media (max-width: 1060px) {
  .brand-panel { padding-inline: 30px; }
  .brand-content h1 { font-size: clamp(35px, 4.5vw, 53px); }
  .auth-main { padding-inline: 40px; }
}
@media (max-width: 850px) {
  .auth-layout { display: block; }
  .brand-panel { display: none; }
  .auth-main { min-height: 100vh; align-items: flex-start; padding: 26px 22px 48px; }
  .auth-column { max-width: 500px; margin-inline: auto; }
  .auth-mobile-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 8px 0 54px; font-size: 12px; }
  .auth-mobile-top a { text-decoration: none; color: #d7e3ee; }
  .auth-mobile-logo { color: #f3bf7d !important; font-size: 15px; font-weight: 850; letter-spacing: .14em; }
  .auth-mobile-logo span { color: #a3b5c7; font-size: 10px; letter-spacing: .1em; }
  .auth-card h2 { font-size: clamp(28px, 7vw, 38px); }
}
@media (max-width: 440px) {
  .auth-main { padding-inline: 18px; }
  .auth-mobile-top { margin-bottom: 36px; }
  .auth-intro { margin-bottom: 27px; }
  .auth-form { gap: 17px; }
  .auth-bottom { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
/* User-initiated, POST/CSRF protected language selection. */
.brand-actions,.auth-mobile-actions{display:flex;align-items:center;gap:14px}
.language-switcher{display:inline-flex;align-items:center;padding:3px;gap:2px;border:1px solid #465569;border-radius:9px;background:#111c29}
.language-switcher button{border:0;border-radius:6px;background:transparent;color:#aab9c8;min-width:32px;padding:6px 7px;font-size:11px;font-weight:750;letter-spacing:.04em;line-height:1.2}
.language-switcher button:hover,.language-switcher button:focus-visible{color:#f6d5a1}
.language-switcher button.is-active{color:#261b0e;background:#ecb871}
.auth-mobile-actions a{white-space:nowrap}
@media(max-width:440px){.auth-mobile-actions{gap:9px}.auth-mobile-logo{font-size:13px}}

.cloud-home{max-width:920px;margin:0 auto;min-height:100vh;padding:30px clamp(18px,4vw,48px)}
.cloud-home-nav{display:flex;align-items:center;justify-content:space-between;gap:14px}
.cloud-home-nav .auth-mobile-logo{color:#f3bf7d;text-decoration:none;font-size:15px;letter-spacing:.14em;font-weight:850}
.cloud-home-nav .auth-mobile-logo span{color:#a3b5c7;font-size:11px;letter-spacing:.1em}
.cloud-home-content{max-width:650px;padding-top:clamp(65px,11vh,125px)}
.cloud-home-content h1{font-size:clamp(32px,6vw,58px);line-height:1.08;letter-spacing:-.045em;margin:14px 0 24px}
.cloud-home-content>p{font-size:15px;line-height:1.75;color:#b3c4d5}
.cloud-home-content strong{color:#ecb871;overflow-wrap:anywhere}
.cloud-home-links{display:grid;gap:13px;max-width:370px;margin-top:30px}
.cloud-home-links .auth-submit--link{margin-top:0}


/* Logout confirmation and completion reuse the account split-screen layout. */
.logout-account {
  display:flex;align-items:center;gap:16px;padding:17px 19px;margin-bottom:22px;
  background:linear-gradient(110deg,#1e2f3c,#192530);
  border:1px solid #425c6e;border-radius:13px;
}
.logout-account-icon {
  display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;
  border-radius:12px;color:#f0bf7b;background:#3e3428;border:1px solid #6d5639;
}
.logout-account-details{display:grid;gap:5px;min-width:0}
.logout-overline {
  color:#99b0c3;font-size:10px;font-weight:720;letter-spacing:.105em;
  text-transform:uppercase;
}
.logout-account-details strong {
  color:#f0f5fb;font-size:14px;font-weight:670;overflow-wrap:anywhere;
}
.logout-reassurance {
  display:flex;align-items:flex-start;gap:13px;
  padding:16px 17px;margin-bottom:24px;
  border:1px solid #3c6055;border-radius:12px;
  background:linear-gradient(125deg,#1d302c,#172925);
  color:#bfe3ce;
}
.logout-reassurance>svg{flex:0 0 auto;margin-top:2px}
.logout-reassurance strong{display:block;color:#e0f2e7;font-size:13px;font-weight:720}
.logout-reassurance p{margin:6px 0 0;color:#afcbbd;font-size:12px;line-height:1.7}
.logout-form{margin:0}
.logout-stay{margin-top:13px}
.logout-footnote {
  margin:19px 0 0;color:#889bae;text-align:center;
  font-size:11px;line-height:1.65;
}
.logout-finished-icon {
  display:grid;place-items:center;width:82px;height:82px;margin:0 0 24px;
  color:#bce5cb;border:1px solid #527a68;border-radius:22px;
  background:radial-gradient(circle at 38% 25%,#3b6753,#203f36);
  box-shadow:0 15px 36px #0a241b60;
}
.logout-finished-note {
  border:1px solid #405e53;border-radius:12px;padding:19px 20px;
  background:linear-gradient(120deg,#203630,#182a27);
}
.logout-finished-note strong{color:#e0f1e4;font-size:14px}
.logout-finished-note p{margin:8px 0 0;color:#b5d1c1;font-size:12px;line-height:1.75}
.logout-finished-actions{display:grid;gap:13px;margin-top:24px}
.logout-finished-actions .auth-submit--link{margin-top:0}
@media(max-width:420px){
  .logout-account{padding:14px;gap:12px}
  .logout-account-icon{width:47px;height:47px;flex-basis:47px}
  .logout-account-details strong{font-size:13px}
  .logout-reassurance{padding:14px}
}
