.auth-register-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  color: #22c55e;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ===== AUTH SECTION ===== */
.auth-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 6% 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.auth-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,200,232,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* ===== CARD ===== */
.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}

/* ===== LOGO ===== */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
}

.auth-logo img {
  width: 32px;
  height: 32px;
}

.auth-logo strong {
  color: var(--cyan);
}

/* ===== TABS ===== */
.auth-tabs {
  display: flex;
  position: relative;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 28px;
  gap: 0;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: calc(var(--radius-md) - 4px);
  transition: color var(--transition);
  position: relative;
  z-index: 1;
}

.auth-tab.active {
  color: var(--text);
}

.auth-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--bg-card);
  border-radius: calc(var(--radius-md) - 4px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.auth-tab-indicator.right {
  transform: translateX(100%);
}

/* ===== FORM ===== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ===== FIELDS ===== */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.auth-input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-input-wrap input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.auth-input-wrap input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 200, 232, 0.12);
}

.auth-input-wrap input.invalid {
  border-color: #ef4444;
}

.auth-input-wrap input.valid {
  border-color: #22c55e;
}

/* Eye toggle */
.auth-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.auth-eye:hover {
  color: var(--cyan);
}

/* ===== PASSWORD STRENGTH ===== */
.auth-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.auth-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-soft);
  border-radius: 100px;
  overflow: hidden;
}

.auth-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  transition: width 0.3s ease, background 0.3s ease;
}

.auth-strength-fill.weak   { background: #ef4444; width: 33%; }
.auth-strength-fill.medium { background: #f97316; width: 66%; }
.auth-strength-fill.strong { background: #22c55e; width: 100%; }

.auth-strength-label {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  white-space: nowrap;
  min-width: 50px;
}

.auth-strength-label.weak   { color: #ef4444; }
.auth-strength-label.medium { color: #f97316; }
.auth-strength-label.strong { color: #22c55e; }

/* ===== ERROR ===== */
.auth-error {
  font-size: 0.78rem;
  color: #ef4444;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-global-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  color: #ef4444;
  font-size: 0.88rem;
  text-align: center;
  display: none;
}

.auth-global-error.visible {
  display: block;
  animation: fadeUp 0.25s ease;
}

/* ===== ROW (remember + forgot) ===== */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Checkbox */
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
}

.auth-checkbox input[type="checkbox"] {
  display: none;
}

.auth-checkbox-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.auth-checkbox input:checked + .auth-checkbox-box {
  background: var(--cyan);
  border-color: var(--cyan);
}

.auth-checkbox input:checked + .auth-checkbox-box::after {
  content: '';
  display: block;
  width: 9px;
  height: 5px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-45deg) translateY(-1px);
}

.auth-forgot {
  font-size: 0.85rem;
  color: var(--cyan);
  text-decoration: none;
  transition: opacity var(--transition);
}

.auth-forgot:hover {
  opacity: 0.75;
}

/* ===== SUBMIT ===== */
.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ===== SWITCH ===== */
.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.auth-switch-btn {
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: opacity var(--transition);
}

.auth-switch-btn:hover {
  opacity: 0.75;
}

/* ===== SUCCESS ===== */
.auth-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 16px 0 8px;
  animation: fadeUp 0.4s ease;
}

.auth-success-icon {
  width: 72px;
  height: 72px;
  background: rgba(34, 197, 94, 0.1);
  border: 1.5px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  margin-bottom: 4px;
}

.auth-success h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.auth-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 540px) {
  .auth-card {
    padding: 28px 20px;
  }

  .auth-fields-row {
    grid-template-columns: 1fr;
  }

  .auth-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
