/* css/auth.css */

.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
}

/* ── Back button ── */
.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
  z-index: 10;
}

.back-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-hover);
}

/* ── Card ── */
.auth-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
}

.auth-title {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}

/* ── Role badge ── */
.auth-badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 14px;
}

.badge-icon { font-size: 30px; line-height: 1; }
.auth-badge strong { display: block; margin-bottom: 4px; font-size: 15px; }
.auth-badge small { color: var(--muted); line-height: 1.4; }

/* ── Referral ── */
.referral-section { margin-bottom: 28px; }

.field-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.referral-row {
  display: flex;
  gap: 10px;
}

.field-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field-input:focus {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
}

.field-input::placeholder { color: var(--muted); }

.ref-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.ref-btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: var(--border-hover);
}

.ref-status {
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
  transition: color 0.2s;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Social buttons ── */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  margin-bottom: 12px;
}

.google-btn {
  background: #ffffff;
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.4);
}

.google-btn:active { transform: translateY(0); }

.google-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Switch link ── */
.switch-link {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}

.switch-link a {
  color: #60a5fa;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; border-radius: 20px; }
  .auth-page { padding-top: 70px; }
}