/* ============================================================
   TAKO — Auth Screens (Login / Register)
   ============================================================ */

.auth-page {
  min-height: 100dvh;
  flex-direction: column;
  background: var(--coal);
  position: relative;
  overflow: hidden;
}

/* Background decoration */
.auth-page::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Hero section ── */
.auth-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px 40px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: logoIn 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes logoIn {
  from { opacity: 0; transform: scale(0.75) translateY(-20px); }
  to   { opacity: 1; transform: none; }
}

.auth-logo-mark {
  width: 72px;
  height: 72px;
  background: var(--text-primary);
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 900;
  color: var(--coal);
  letter-spacing: -1px;
  box-shadow: var(--shadow-accent);
  position: relative;
}
.auth-logo-mark::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}

.auth-logo-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-align: center;
}

.auth-tagline {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -8px;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* ── Auth card ── */
.auth-card {
  flex: 1;
  background: var(--coal-2);
  border-radius: 28px 28px 0 0;
  border-top: 1px solid var(--border);
  padding: 32px 24px 48px;
  position: relative;
  z-index: 1;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.auth-tabs {
  display: flex;
  background: var(--coal-3);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.auth-tab.active {
  background: var(--text-primary);
  color: var(--coal);
  box-shadow: var(--shadow-accent);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-form-panel { display: none; }
.auth-form-panel.active { display: flex; flex-direction: column; gap: 16px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.auth-divider span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.7;
}

/* ── Password input wrapper ── */
.input-password-wrap { position: relative; }
.input-password-wrap .form-control { padding-right: 46px; }
.input-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  user-select: none;
}
.input-password-toggle:hover { color: var(--text-primary); }

/* ── Welcome back greeting ── */
.auth-greeting {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.auth-greeting-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Error message ── */
.form-error {
  font-size: 12px;
  color: #FF6B6B;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(220,50,50,0.08);
  border: 1px solid rgba(220,50,50,0.2);
  border-radius: var(--radius-sm);
  display: none;
}
.form-error.show { display: flex; }
