/* Suzu VPN login page redesign v1.0 (GPT spec, 2026-11-21).
   Theme-layer only: login page template scope (html.suzu-login, toggled by
   suzu-login.js on the #/login route) + global chat launcher restyle.
   No auth/API behaviour is touched. */

/* ---------- palettes ---------- */
html.suzu-login {
  --sl-bg: #F7F8FA;
  --sl-card: #FFFFFF;
  --sl-card-border: #E4E8EF;
  --sl-input: #F3F4F6;
  --sl-border: #D8DDE5;
  --sl-text: #20242B;
  --sl-sub: #6B7280;
  --sl-orange: #FF9F0A;
  --sl-orange-hover: #FFB347;
  --sl-on-orange: #201609;
  --sl-error: #C81E1E;
  --sl-link: #A85A00;
  --sl-shadow: 0 12px 32px rgba(16, 24, 40, .10);
}
html.suzu-login.dark {
  --sl-bg: #111318;
  --sl-card: #1B1E25;
  --sl-card-border: #262B34;
  --sl-input: #282C35;
  --sl-border: #3A404B;
  --sl-text: #F5F6F8;
  --sl-sub: #A6ABB5;
  --sl-error: #FF8585;
  --sl-link: #FF9F0A;
  --sl-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

/* ---------- page frame ---------- */
html.suzu-login body { background-color: var(--sl-bg); }
html.suzu-login .wh-full {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  height: auto;
  box-sizing: border-box;
  background-color: var(--sl-bg);
  padding: calc(76px + env(safe-area-inset-top, 0px)) 24px calc(108px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 359px) {
  html.suzu-login .wh-full { padding-left: 16px; padding-right: 16px; }
}

/* ---------- brand block (logo moved out of the card by JS) ---------- */
html.suzu-login .suzu-logo-wrap { text-align: center; }
html.suzu-login .suzu-logo-wrap img {
  width: 68px; height: 68px; object-fit: contain; display: block; margin: 0 auto;
}
@media (min-width: 768px) {
  html.suzu-login .suzu-logo-wrap img { width: 76px; height: 76px; }
}
html.suzu-login .suzu-brand { text-align: center; margin: 10px 0 26px; }
html.suzu-login .suzu-brand-title { font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--sl-text); }
@media (min-width: 768px) {
  html.suzu-login .suzu-brand-title { font-size: 28px; }
}
html.suzu-login .suzu-brand-sub { font-size: 14px; color: var(--sl-sub); margin-top: 6px; }

/* ---------- form card ---------- */
html.suzu-login .n-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--sl-card);
  border-color: var(--sl-card-border);
  border-radius: 20px;
  box-shadow: var(--sl-shadow);
}
html.suzu-login .n-card__content .p-6 { padding: 24px; }
@media (min-width: 768px) {
  html.suzu-login .n-card__content .p-6 { padding: 28px; }
}
/* original muted description line (site description) is replaced by the brand block */
html.suzu-login .n-card h5.text-muted { display: none; }

html.suzu-login .suzu-form-head { margin-bottom: 2px; }
html.suzu-login .suzu-form-title { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--sl-text); }
html.suzu-login .suzu-form-desc { font-size: 13px; color: var(--sl-sub); margin-top: 6px; line-height: 1.5; }

/* ---------- field labels ---------- */
html.suzu-login .suzu-field-label { font-size: 14px; font-weight: 600; color: var(--sl-text); margin-bottom: 8px; }
html.suzu-login .suzu-field-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
html.suzu-login .suzu-field-label-row .suzu-field-label { margin-bottom: 0; }
html.suzu-login .suzu-field-label-row a { font-size: 13px; color: var(--sl-link); text-decoration: none; }

/* ---------- inputs ---------- */
html.suzu-login .n-card .n-input {
  background-color: var(--sl-input);
  border-radius: 12px;
  height: 52px;
}
html.suzu-login .n-card .n-input .n-input__border,
html.suzu-login .n-card .n-input .n-input__state-border { border-radius: 12px; }
html.suzu-login .n-card .n-input .n-input__border { border-color: var(--sl-border); }
html.suzu-login .n-card .n-input--focus { background-color: var(--sl-input); }
html.suzu-login .n-card .n-input--focus .n-input__state-border {
  border-color: var(--sl-orange);
  box-shadow: 0 0 0 3px rgba(255, 159, 10, .16);
}
html.suzu-login .n-card .n-input__input-el { color: var(--sl-text); }
html.suzu-login .n-card .n-input__placeholder span { color: var(--sl-sub); }

/* ---------- primary button: orange, never bright blue ---------- */
html.suzu-login .n-card .n-button--primary-type {
  background-color: var(--sl-orange);
  color: var(--sl-on-orange);
  height: 52px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
}
html.suzu-login .n-card .n-button--primary-type:hover { background-color: var(--sl-orange-hover); }
html.suzu-login .n-card .n-button--primary-type .n-button__border,
html.suzu-login .n-card .n-button--primary-type .n-button__state-border { border-color: transparent; }
html.suzu-login .n-loading-bar { background-color: var(--sl-orange) !important; }

/* ---------- register line under the button ---------- */
html.suzu-login .suzu-register-line { margin-top: 20px; text-align: center; font-size: 14px; color: var(--sl-sub); }
html.suzu-login .suzu-register-line a { color: var(--sl-link); text-decoration: none; font-weight: 600; margin-left: 4px; }

/* ---------- footer: links replaced, language becomes the top toolbar ---------- */
html.suzu-login .n-card .n-card__content > div.flex.justify-between { background-color: transparent; padding: 0; }
html.suzu-login .n-card .n-card__content > div.flex.justify-between > div:first-child { display: none; }
html.suzu-login .n-card .n-card__content > div.flex.justify-between > div:last-child {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  right: 16px;
  z-index: 2000;
}
@media (min-width: 768px) {
  html.suzu-login .n-card .n-card__content > div.flex.justify-between > div:last-child { top: 16px; right: 24px; }
}
html.suzu-login .n-card .n-card__content > div.flex.justify-between > div:last-child .n-button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background-color: var(--sl-card);
  color: var(--sl-text);
  border: 1px solid var(--sl-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

/* ---------- error toast ---------- */
html.suzu-login .n-message--error-type .n-message__icon { color: var(--sl-error); }
html.suzu-login .n-message--error-type .n-message__content { color: var(--sl-error); }

/* ---------- chat launcher: orange circle replaces the gold capsule (global) ---------- */
body button.suzu-chat-bubble {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #FF9F0A;
  border: none;
  padding: 0;
  gap: 0;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  right: 24px; bottom: 24px;
}
body button.suzu-chat-bubble .bic,
body button.suzu-chat-bubble .suzu-chat-blabel { display: none; }
body button.suzu-chat-bubble::before {
  content: "";
  width: 26px; height: 26px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E");
}
@media (max-width: 767px) {
  body button.suzu-chat-bubble {
    width: 48px; height: 48px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  body button.suzu-chat-bubble::before { width: 24px; height: 24px; }
  body .suzu-chat-panel {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px) + 48px + 12px);
  }
}
@media (min-width: 768px) {
  body .suzu-chat-panel { right: 24px; bottom: 88px; }
}
