.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page .auth-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1152px;
  align-items: stretch;
}

@media (min-width: 1280px) {
  .auth-page .auth-shell {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-page .auth-card {
  background: #fff;
  border: 1px solid rgb(226 232 240);
  border-radius: 32px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(15,23,42,0.04);
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .auth-page .auth-card {
    padding: 32px;
  }
}

@media (min-width: 1280px) {
  .auth-page .auth-card {
    margin-inline: 0;
  }
}

.auth-page .auth-hero {
  display: none;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgb(226 232 240);
  box-shadow: 0 4px 18px rgba(15,23,42,0.04);
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
  color: #fff;
  padding: 40px;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 1280px) {
  .auth-page .auth-hero {
    display: flex;
  }
}

.auth-page .auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.auth-page .auth-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.auth-page .auth-hero-panels {
  display: grid;
  gap: 16px;
}

.auth-page .auth-hero-panel {
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 16px;
}

.auth-page .auth-field {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid rgb(226 232 240);
  background: rgb(248 250 252);
  padding: 12px 14px;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-page .auth-field:focus {
  border-color: rgba(37,99,235,0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

.auth-page .auth-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .18s ease;
}

.auth-page .auth-btn:hover {
  opacity: .92;
}

.auth-page .auth-password-wrap {
  position: relative;
}

.auth-page .auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #64748b;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.auth-page .auth-password-toggle:hover {
  color: #334155;
}

.auth-phone-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

.auth-dial-code {
  text-align: center;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
}

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

.auth-shell-single {
  grid-template-columns: 1fr;
}

.auth-card-wide {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.auth-verify-box {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  background: #fff;
}

.auth-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
  transition: .2s ease;
}

.auth-btn-secondary:hover {
  background: #f1f5f9;
}

.auth-status-ok {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.auth-status-pending {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.auth-success-box {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.auth-page .ts-wrapper .ts-control {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 12px 14px;
  box-shadow: none;
  background: #fff;
}

.auth-page .ts-wrapper.single .ts-control input {
  font-size: 14px;
}

.auth-page .ts-wrapper .ts-dropdown {
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  overflow: hidden;
}