.auth-body {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 1.25rem;
  padding: 1.5rem 1rem 2rem;
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(20, 110, 245, 0.12), transparent 55%),
    var(--bg);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: center;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth-brand .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--blue), var(--dark));
  position: relative;
}
.auth-brand .logo-mark::after {
  content: "";
  position: absolute;
  inset: 10px 9px 9px 14px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}
.auth-brand strong { color: var(--blue); }

.auth-card {
  width: min(420px, 100%);
  justify-self: center;
  padding: 1.35rem 1.25rem 1.5rem;
}

.demo-try {
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20, 110, 245, 0.08), rgba(22, 179, 100, 0.08));
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  text-align: center;
}
.demo-try p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}
.demo-hint {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.3rem;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.auth-tabs button {
  border: 0;
  background: transparent;
  min-height: 42px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
}
.auth-tabs button.is-active {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

.auth-form h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.auth-form .sub {
  margin: 0.4rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.auth-form .field { margin-bottom: 0.85rem; }
.auth-form .btn { margin-top: 0.35rem; }

.phone-otp {
  position: relative;
  display: block;
}
.phone-otp input {
  width: 100%;
  padding-right: 3.1rem !important;
}
.phone-otp__send {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.phone-otp__send[hidden] {
  display: none !important;
}
.phone-otp__send:hover:not(:disabled) {
  background: rgba(20, 110, 245, 0.1);
}
.phone-otp__send:disabled {
  cursor: default;
  color: var(--muted);
}
.phone-otp__send.is-loading .phone-otp__icon { opacity: 0; }
.phone-otp__send.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(20, 110, 245, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.phone-otp__cd {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  line-height: 1;
}
.phone-otp__send.is-cooldown .phone-otp__icon { display: none; }

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}
.check input { margin-top: 0.2rem; }

.auth-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.auth-foot a { color: var(--blue); font-weight: 600; }

.btn.is-loading {
  position: relative;
  color: transparent !important;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
