.auth-page {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 620px;
  border: 1px solid var(--border);
  background: rgba(20, 16, 28, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(168, 85, 247, 0.35);
}

.auth-tabs {
  display: flex;
}
.auth-tab {
  flex: 1;
  padding: 18px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
  color: var(--text);
  border-bottom-color: var(--purple);
}

.auth-live-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 26px auto 0;
  width: fit-content;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.auth-panel {
  padding: 26px 40px 40px;
  text-align: center;
}
.auth-panel h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
.auth-panel-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 26px;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
}
.field-full { grid-column: 1 / -1; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > span:first-child {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.field > span:first-child em {
  font-style: normal;
  opacity: 0.7;
  font-weight: 500;
}
.field-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease;
}
.field-input:focus-within { border-color: var(--purple); }
.field-input > i {
  font-style: normal;
  opacity: 0.6;
  font-size: 14px;
  flex-shrink: 0;
}
.field-input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.field-input input::placeholder { color: var(--muted); }

/* browsers paint autofilled fields with their own light background — override
   it back to the dark theme instead of the default white/yellow box */
.field-input input:-webkit-autofill,
.field-input input:-webkit-autofill:hover,
.field-input input:-webkit-autofill:focus,
.field-input input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  box-shadow: 0 0 0 1000px var(--bg) inset;
}

.field-eye {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}
.field-eye:hover { color: var(--text); }

.field-input-phone { padding-left: 8px; }
.phone-code {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text);
  padding-right: 10px;
  border-right: 1px solid var(--border);
}

.field-hint {
  font-size: 11px;
  color: var(--muted);
  margin: -4px 0 0;
}

.auth-forgot {
  text-align: right;
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
  margin-top: -6px;
}
.auth-forgot:hover { text-decoration: underline; }

.l-btn-purple {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  margin-top: 8px;
  box-shadow: 0 8px 26px -8px rgba(124, 58, 237, 0.6);
}

.auth-note {
  text-align: center;
  font-size: 12.5px;
  min-height: 16px;
  color: var(--pink);
  margin: 16px 0 0;
}
.auth-note.success { color: #4ade80; }

@media (max-width: 560px) {
  .auth-form-grid { grid-template-columns: 1fr; }
  .auth-panel { padding: 22px 22px 32px; }
}
