.auth-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 32px;
}

.auth-hero {
  background: linear-gradient(152deg, #1A1A1A 0%, #0A0A0A 60%, #000 100%);
  padding: 48px 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}

.auth-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-hero-orb-1 {
  width: 200px;
  height: 200px;
  top: -70px;
  right: -50px;
  background: rgba(236,72,153,0.1);
}

.auth-hero-orb-2 {
  width: 130px;
  height: 130px;
  bottom: -40px;
  left: -20px;
  background: rgba(236,72,153,0.06);
}

.auth-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(236,72,153,0.25));
}

.auth-tabs {
  display: flex;
  margin: 20px 20px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  transition: all 150ms ease;
}

.auth-tab.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(236,72,153,0.3);
}

.auth-body {
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-select-wrap {
  position: relative;
}

.auth-select {
  width: 100%;
  height: 52px;
  padding: 0 40px 0 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 150ms ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23999' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.auth-select:focus {
  border-color: var(--primary);
}

.auth-phone-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.auth-dial-prefix {
  height: 52px;
  padding: 0 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 64px;
  justify-content: center;
}

.auth-phone-input {
  flex: 1;
}

.auth-features {
  margin: 24px 20px 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.auth-features-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.auth-feature-item:last-of-type {
  border-bottom: none;
}

.auth-feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.auth-feature-item span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.auth-features-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

.auth-country-dropdown {
  position: relative;
}

.auth-country-trigger {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: border-color 150ms ease;
}

.auth-country-trigger.open {
  border-color: var(--primary);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.auth-flag-box {
  width: 34px;
  height: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-country-trigger-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-country-trigger-dial {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}

.auth-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.auth-country-trigger.open .auth-chevron {
  transform: rotate(180deg);
}

.auth-country-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--primary);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.auth-country-list.open {
  display: block;
}

.auth-country-option {
  width: 100%;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  outline: none;
  transition: background 100ms ease;
}

.auth-country-option:last-child {
  border-bottom: none;
}

.auth-country-option:active,
.auth-country-option.selected {
  background: var(--primary-light);
}

.auth-country-option-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-country-option-dial {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}

.auth-op-detect {
  min-height: 28px;
}

.auth-op-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(236,72,153,0.08);
  border: 1px solid rgba(236,72,153,0.2);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.auth-op-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.auth-op-badge-unknown {
  background: rgba(0,0,0,0.04);
  border-color: var(--border);
  color: var(--text-muted);
}

.auth-op-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0 2px;
}
