/*
  登录页样式（对应 public/login.html）
  视觉按 eta.huxi.pro/login 的登录页对齐：主题背景、左右分栏、红色主色。
  设计令牌取自该页实测值：正文 #17181b、次要文字 #676d77、描边 #d7dbe1、主色 #cc0000。
  品牌主题限定在 .auth-branded，避免改变共用基础样式的找回密码页。
*/

/* 兜底：hidden 属性必须生效（作者样式的 display 会压过浏览器默认的 [hidden]{display:none}）。 */
[hidden] { display: none !important; }

:root {
  --auth-bg: #ffffff;
  --auth-surface: #ffffff;
  --auth-foreground: #17181b;
  --auth-muted: #676d77;
  --auth-border: #d7dbe1;
  --auth-accent: #cc0000;
  --auth-accent-hover: #a80000;
  --auth-input-text: #4f535b;
  --auth-page-bg: #f6f7f9;
}

* { box-sizing: border-box; }

html[data-auth-page="login"] {
  font-size: clamp(0.875rem, calc(0.75rem + 0.25vw), 1rem);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--auth-bg);
  color: var(--auth-foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ========== 外层容器 ========== */

.auth-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 52rem;
  overflow: hidden;
  border: 1px solid var(--auth-border);
  border-radius: 0.75rem;
  background: var(--auth-surface);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.auth-form {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.auth-form__inner {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

/* ========== 品牌区 ========== */

.auth-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-header__brand {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-header__subtitle {
  margin: 0.5rem 0 0;
  color: var(--auth-muted);
  font-size: 0.875rem;
}

/* ========== 登录方式 Tab ========== */

.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.auth-tabs__item {
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--auth-muted);
  font: inherit;
  font-size: 1rem;
  line-height: 2.25;
  cursor: pointer;
}

.auth-tabs__item.is-active {
  color: var(--auth-accent);
}

.auth-tabs__item:focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 第三方登录共用手机号及资料表单。 */
.auth-social { margin-top: 1.25rem; text-align: center; }
.auth-social__title {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 0.5rem;
  color: var(--auth-muted);
  font-size: 0.75rem;
}
.auth-social__title::before,
.auth-social__title::after { content: ''; flex: 1; height: 1px; background: var(--auth-border); }
.auth-social__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  min-width: 4rem;
  padding: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--auth-muted);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.auth-social__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #edf9f1; color: #07a953; }
.auth-social__icon svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.auth-social__button:hover .auth-social__icon { background: #dcf5e5; }
.auth-social__button:focus-visible { outline: 2px solid #07a953; outline-offset: 2px; }
.auth-social__button[hidden] { display: none; }
.auth-social__button:disabled { opacity: 0.5; cursor: wait; }
[data-alipay-start] .auth-social__icon { background: #e9f4ff; color: #1677ff; font-size: 1.5rem; }
[data-alipay-start]:hover .auth-social__icon { background: #d5eaff; }
[data-alipay-start]:focus-visible { outline-color: #1677ff; }
.auth-form__inner:has([data-wechat-context]:not([hidden])) .auth-social { display: none; }

/* ========== 输入组 ========== */

.auth-fields {
  overflow: hidden;
  border: 1px solid var(--auth-border);
  border-radius: 0.75rem;
}

.auth-field {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 3.5rem;
  min-width: 0;
  padding: 0 1rem;
}

.auth-field + .auth-field {
  border-top: 1px solid var(--auth-border);
}

.auth-field__label {
  flex: none;
  width: 3.5rem;
  font-size: 0.875rem;
  color: var(--auth-foreground);
}

.auth-field__control {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.auth-field__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--auth-input-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
}

.auth-field__input::placeholder {
  color: #9aa0aa;
  font-weight: 400;
}

/* 浏览器自动填充会盖成蓝底，这里压回卡片底色 */
.auth-field__input:-webkit-autofill,
.auth-field__input:-webkit-autofill:hover,
.auth-field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-input-text);
  caret-color: var(--auth-input-text);
  box-shadow: 0 0 0 1000px var(--auth-surface) inset;
  transition: background-color 9999s ease-out;
}

.auth-field__country {
  flex: none;
  align-self: stretch;
  width: 4.625rem;
  padding: 0 0.75rem;
  border: 0;
  border-right: 1px solid var(--auth-border);
  border-radius: 0;
  background: transparent;
  color: var(--auth-foreground);
  font: inherit;
  font-size: 0.875rem;
  outline: none;
}

.auth-field__input--phone {
  padding-left: 0.25rem;
}

.auth-field__action {
  flex: none;
  align-self: stretch;
  min-width: 7.25rem;
  padding: 0 0.75rem;
  border: 0;
  border-left: 1px solid var(--auth-border);
  border-radius: 0;
  background: transparent;
  color: var(--auth-accent);
  font: inherit;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
}

.auth-field__action:disabled {
  color: var(--auth-muted);
  cursor: not-allowed;
}

.auth-field__icon-btn {
  display: grid;
  flex: none;
  width: 2rem;
  height: 2rem;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--auth-muted);
  cursor: pointer;
}

.auth-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========== 忘记密码菜单 ========== */

.auth-recovery {
  position: relative;
  flex: none;
}

.auth-recovery__trigger {
  padding: 0;
  border: 0;
  background: none;
  color: var(--auth-accent);
  font: inherit;
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.auth-recovery__trigger:hover {
  text-decoration: underline;
}

.auth-recovery__menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  width: 16rem;
  max-width: calc(100vw - 4rem);
  padding-top: 0.75rem;
}

.auth-recovery__menu[hidden] {
  display: none;
}

.auth-recovery__item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0.25rem;
  background: var(--auth-surface);
  color: var(--auth-foreground);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.auth-recovery__item small {
  display: block;
  color: var(--auth-muted);
}

.auth-recovery__item:hover {
  background: #f2f4f7;
}

.auth-recovery__menu {
  background: var(--auth-surface);
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

/* ========== 按钮 ========== */

.auth-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.25rem;
}

.auth-button {
  flex: 1 1 0;
  min-width: 0;
  height: 2.75rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.auth-button--ghost {
  border-color: var(--auth-border);
  background: transparent;
  color: var(--auth-foreground);
}

.auth-button--ghost:hover {
  background: #f2f4f7;
}

.auth-button--primary {
  background: var(--auth-accent);
  color: #fff;
}

.auth-button--primary:hover {
  background: var(--auth-accent-hover);
}

.auth-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-button--block {
  width: 100%;
  margin-top: 1.25rem;
}

/* ========== 说明与提示 ========== */

.auth-legal {
  margin: 1.25rem 0 0;
  color: var(--auth-muted);
  font-size: 0.75rem;
  line-height: 1.25rem;
  text-align: center;
}

.auth-legal a {
  margin: 0 0.25rem;
  color: var(--auth-accent);
  text-decoration: none;
}

.auth-legal a:hover {
  text-decoration: underline;
}

.auth-message {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--auth-muted);
}

.auth-message[data-tone="error"] { color: #c62828; }
.auth-message[data-tone="ok"] { color: #1b7f4b; }

/* 已登录时给出的「直接进入创作平台」入口，用主色保持可点感。 */
.auth-message a,
.auth-resume-hint a {
  color: var(--auth-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-message a:hover,
.auth-resume-hint a:hover { color: var(--auth-accent-hover); }

/* 已登录提示独立于消息区（不被 setMessage 清空），单独留出上边距。 */
.auth-resume-hint { margin-top: 0.5rem; }

.auth-panel[hidden] { display: none; }

.auth-wechat-context {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: var(--auth-page-bg);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.auth-wechat-context p { margin: 0 0 0.5rem; }
.auth-wechat-context .auth-button { width: 100%; }
.auth-profile__title { margin: 0; font-size: 1rem; }
.auth-profile > label { display: block; margin-top: 0.875rem; font-size: 0.8125rem; }
.auth-profile__input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.625rem;
  border: 1px solid var(--auth-border);
  border-radius: 0.375rem;
  background: var(--auth-surface);
  color: var(--auth-foreground);
  font: inherit;
}
.auth-profile__input:focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 1px; }
.auth-profile__agreement { line-height: 1.5; }
.auth-profile__agreement a { color: var(--auth-accent); }
.auth-form:has(.auth-profile:not([hidden])) { justify-content: flex-start; }

/* ========== 右栏：联系与帮助 ========== */

.auth-help {
  display: flex;
  flex: none;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--auth-border);
  background: var(--auth-page-bg);
}

.auth-help__heading {
  margin-bottom: 1rem;
  text-align: center;
}

.auth-help__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.auth-help__subtitle {
  margin: 0.375rem 0 0;
  color: var(--auth-muted);
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.auth-help__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.5rem;
}

.auth-qr {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.625rem;
  border: 1px solid var(--auth-border);
  border-radius: 0.75rem;
  background: var(--auth-surface);
  text-align: center;
}

.auth-qr__code {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  padding: 0.25rem;
  border-radius: 0.5rem;
  background: #fff;
}

.auth-qr__code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-qr__name {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.auth-qr__hint {
  margin: 0.25rem 0 0;
  color: var(--auth-muted);
  font-size: 0.75rem;
  line-height: 1.25rem;
}

/* ========== 点选验证码 ========== */

.auth-captcha {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(23, 24, 27, 0.55);
}

.auth-captcha[hidden] { display: none; }

.auth-captcha__panel {
  width: 100%;
  max-width: 24rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--auth-surface);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.auth-captcha__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-captcha__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.auth-captcha__close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--auth-border);
  border-radius: 0.5rem;
  background: none;
  color: var(--auth-muted);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.auth-captcha__tip {
  margin: 0.5rem 0 0;
  color: var(--auth-muted);
  font-size: 0.75rem;
}

.auth-captcha__prompt {
  margin: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--auth-foreground);
}

.auth-captcha__stage {
  position: relative;
  width: 100%;
  border: 1px solid var(--auth-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #eef2f7;
}

.auth-captcha__image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.auth-captcha__marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-captcha__mark {
  position: absolute;
  width: 1.375rem;
  height: 1.375rem;
  margin: -0.6875rem 0 0 -0.6875rem;
  border: 2px solid var(--auth-accent);
  border-radius: 50%;
  background: rgba(204, 0, 0, 0.18);
  color: var(--auth-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.1875rem;
  text-align: center;
}

.auth-captcha__message {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--auth-muted);
}

.auth-captcha__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.auth-captcha__actions .auth-button {
  margin-top: 0;
}

/* ========== 响应式：≥640px 起左右分栏 ========== */

@media (min-width: 640px) {
  .auth-card {
    flex-direction: row;
    height: 40rem;
  }

  .auth-form {
    padding: 2rem;
    justify-content: center;
  }

  .auth-help {
    height: 100%;
    width: 15rem;
    padding: 1.5rem 1.25rem;
    border-top: 0;
    border-left: 1px solid var(--auth-border);
  }
}

@media (min-width: 768px) {
  .auth-help {
    width: 20rem;
    padding: 1.5rem;
  }
}

/* 手机号与验证码按钮分行，窄屏也能显示完整号码。 */
@media (max-width: 420px) {
  .auth-field:has(.auth-field__input--phone) {
    display: grid;
    grid-template-columns: 4.75rem minmax(0, 1fr);
    gap: 0;
    height: auto;
    padding: 0;
  }
  .auth-field__country { width: 100%; height: 3.5rem; }
  .auth-field__input--phone { height: 3.5rem; padding: 0 0.75rem; }
  .auth-field:has(.auth-field__input--phone) .auth-field__action {
    grid-column: 1 / -1;
    height: 2.75rem;
    border-left: 0;
    border-top: 1px solid var(--auth-border);
  }
}

@media (max-width: 359px) {
  .auth-help__grid {
    grid-template-columns: 1fr;
  }
}

/* 恢复与创作平台一致的登录背景和品牌区，复用已在仓库中的原图。 */
.auth-branded {
  --auth-bg: #f6f7f9;
  --auth-surface: #ffffff;
  --auth-accent: #b51212;
  --auth-accent-hover: #990f0f;
  --auth-input-text: #17181b;
  --auth-input-bg: #f6f7f9;
  --auth-background-image: url('/auth/login-bg-light.jpg');
  --auth-shadow: rgba(0, 0, 0, 0.16);
  background: var(--auth-bg) var(--auth-background-image) center bottom / cover no-repeat fixed;
}

[data-account-theme="dark"] .auth-branded {
  color-scheme: dark;
  --auth-bg: #050505;
  --auth-surface: #101010;
  --auth-foreground: #fafafa;
  --auth-muted: #a1a1aa;
  --auth-border: #303036;
  --auth-accent: #e02020;
  --auth-accent-hover: #f03030;
  --auth-input-text: #fafafa;
  --auth-input-bg: #1a1a1a;
  --auth-page-bg: #1a1a1a;
  --auth-background-image: url('/auth/login-bg-dark.jpg');
  --auth-shadow: rgba(0, 0, 0, 0.45);
}

.auth-branded .auth-page { min-height: 100dvh; padding: 4.5rem 1rem 2.5rem; }
.auth-branded .auth-card {
  border-color: color-mix(in srgb, var(--auth-border) 85%, var(--auth-accent) 15%);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--auth-surface) 80%, transparent);
  box-shadow: 0 24px 80px var(--auth-shadow);
  backdrop-filter: blur(12px);
}
.auth-branded .auth-form { padding: 2.5rem; }
.auth-branded .auth-header { margin-bottom: 1.5rem; }
.auth-branded .auth-header__brand { font-size: 2.25rem; line-height: 1.1; }
.auth-branded .auth-header__brand span { color: var(--auth-accent); }
.auth-branded .auth-header__subtitle { color: var(--auth-input-text); }
.auth-header__slogan { margin: 0.25rem 0 0; color: var(--auth-muted); font-size: 0.75rem; }
.auth-branded .auth-tabs { gap: 2rem; border-bottom: 1px solid var(--auth-border); }
.auth-branded .auth-tabs__item { padding: 0 0 0.75rem; font-size: 0.875rem; line-height: 1.5; border-bottom: 2px solid transparent; }
.auth-branded .auth-tabs__item.is-active { border-bottom-color: var(--auth-accent); }
.auth-branded .auth-fields { display: grid; gap: 0.75rem; border: 0; overflow: visible; }
.auth-branded .auth-field { height: 3rem; gap: 0.75rem; padding: 0 0.75rem; border: 1px solid var(--auth-border); border-radius: 0.75rem; background: var(--auth-input-bg); }
.auth-branded .auth-field:focus-within { outline: 2px solid var(--auth-accent); outline-offset: 2px; }
.auth-branded .auth-field > .auth-icon { flex: none; width: 1.125rem; height: 1.125rem; color: var(--auth-muted); }
.auth-branded .auth-field__control { align-self: stretch; }
.auth-branded .auth-field__country { padding: 0; width: 3.5rem; }
.auth-branded .auth-field__action { min-width: 6rem; padding: 0 0.5rem; }
.auth-options { display: flex; justify-content: flex-end; margin-top: 0.75rem; }
.auth-branded .auth-recovery__trigger { font-size: 0.75rem; }
.auth-branded .auth-actions { flex-direction: column; margin-top: 1.25rem; }
.auth-branded .auth-button { flex: none; height: 2.25rem; border-radius: 0.75rem; }
.auth-branded .auth-button--ghost:hover { background: var(--auth-input-bg); }
.auth-branded .auth-legal { font-size: 0.6875rem; line-height: 1.6; }
.auth-branded .auth-legal a { margin: 0; }
.auth-branded .auth-message:empty { display: none; }
.auth-branded .auth-message[data-tone="error"] { color: var(--auth-accent); }
[data-account-theme="dark"] .auth-branded :is(a, .auth-message[data-tone="error"], .auth-tabs__item.is-active, .auth-field__action:not(:disabled)) { color: #ff7777; }
.auth-branded .auth-social { margin-top: 1rem; }
.auth-branded .auth-social__button { padding: 0.25rem; }
.auth-branded .auth-social__icon { width: 2.25rem; height: 2.25rem; }
[data-account-theme="dark"] .auth-branded .auth-social__icon { background: #123725; color: #36da81; }
[data-account-theme="dark"] .auth-branded [data-alipay-start] .auth-social__icon { background: #142e4e; color: #70b3ff; }
.auth-branded .auth-help { padding: 2.25rem; background: transparent; }
.auth-help__tagline { margin: 0 0 2.25rem; text-align: right; color: var(--auth-muted); font-size: 0.75rem; }
.auth-branded .auth-help__title { font-size: 0.875rem; }
.auth-branded .auth-help__grid { gap: 0.75rem; }
.auth-branded .auth-qr { padding: 0.75rem; background: color-mix(in srgb, var(--auth-input-bg) 80%, transparent); border-color: color-mix(in srgb, var(--auth-accent) 45%, var(--auth-border)); }
.auth-branded .auth-qr__code { padding: 0.75rem; color-scheme: light; }
.auth-help__contact { margin-top: 1rem; color: var(--auth-muted); font-size: 0.75rem; line-height: 1.6; }
.auth-help__contact p { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0 0 0.75rem; }
.auth-help__contact p:last-child { margin-bottom: 0; }
.auth-help__contact .auth-icon { flex: none; width: 0.875rem; height: 0.875rem; margin-top: 0.15rem; }
.auth-help__contact a { color: var(--auth-accent); text-decoration: none; overflow-wrap: anywhere; }
.auth-help__contact a:hover { text-decoration: underline; }
.auth-theme-toggle { position: fixed; top: 1rem; right: 1rem; z-index: 30; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid transparent; border-radius: 0.75rem; background: transparent; color: var(--auth-muted); cursor: pointer; }
.auth-theme-toggle:hover { border-color: var(--auth-border); background: var(--auth-surface); }
.auth-branded button:focus-visible, .auth-branded a:focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 3px; }
.auth-theme-toggle__sun, [data-account-theme="dark"] .auth-theme-toggle__moon { display: none; }
[data-account-theme="dark"] .auth-theme-toggle__sun { display: block; }

@media (min-width: 640px) {
  .auth-branded .auth-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; min-height: 34rem; align-items: stretch; }
  .auth-branded .auth-form, .auth-branded .auth-help { width: auto; }
  .auth-branded .auth-help { height: auto; }
}
@media (min-width: 640px) and (max-width: 767px) {
  .auth-branded .auth-form, .auth-branded .auth-help { padding: 1.5rem; }
}
@media (max-width: 639px) {
  .auth-branded .auth-form, .auth-branded .auth-help { padding: 1.5rem; }
  .auth-help__tagline { margin-bottom: 1.5rem; text-align: center; }
}
@media (max-width: 420px), (min-width: 640px) and (max-width: 863px) {
  .auth-branded .auth-field:has(.auth-field__input--phone) { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 0; height: auto; padding: 0; }
  .auth-branded .auth-field__country { width: 100%; height: 3rem; }
  .auth-branded .auth-field__input--phone { height: 3rem; padding: 0 0.75rem; }
  .auth-branded .auth-field:has(.auth-field__input--phone) .auth-field__action { grid-column: 1 / -1; height: 2.75rem; border-left: 0; border-top: 1px solid var(--auth-border); }
}
