/* ═══════════════════════════════════════════════════
   GEN-Z LIGHT AUTH UI (Login / Register)
   ═══════════════════════════════════════════════════ */

* {
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.auth-page {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px;
}

/* ── Auth Container ── */
.auth-container {
  width: 100%;
  max-width: 400px;
  animation: authFadeIn 0.5s ease;
}

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

/* ── Logo Section ── */
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-block;
}

.auth-logo h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 8px;
  letter-spacing: -1px;
}

.auth-logo p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
  opacity: 0.8;
}

/* ── Auth Card ── */
.auth-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* ── Auth Tabs ── */
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-pill);
  padding: 4px;
  border: 1px solid var(--glass-border);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.2s;
}

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

.auth-tab.active {
  background: var(--gradient-main);
  color: var(--bg-primary);
  box-shadow: var(--neon-cyan-glow);
}

/* ── Auth Form ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.auth-form.hidden { display: none; }

.auth-step {
  display: none;
  flex-direction: column;
  gap: 20px;
}
.auth-step.active {
  display: flex;
}

/* ── Input Group ── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 4px;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 1rem;
}

.input-field {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  outline: none;
}

.input-field:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--neon-cyan);
  box-shadow: var(--neon-cyan-glow);
}

/* ── Button ── */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--gradient-main);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--neon-cyan-glow);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
}
.btn-ghost:hover {
  color: var(--text-main);
}

/* ── OTP Area ── */
.otp-header {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.otp-header strong {
  color: var(--text-main);
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.otp-input {
  width: 48px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--neon-cyan);
  outline: none;
  transition: all 0.3s ease;
}

.otp-input:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--neon-cyan);
  box-shadow: var(--neon-cyan-glow);
  transform: translateY(-4px);
}

.demo-otp-display {
  background: #f0fdf4;
  border: 1px dashed #22c55e;
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  margin-bottom: 8px;
}

.demo-otp-display .label {
  font-size: 0.75rem;
  color: #15803d;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.demo-otp-display .code {
  font-size: 1.5rem;
  font-weight: 800;
  color: #166534;
  letter-spacing: 4px;
}

.otp-timer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.resend-btn {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-weight: 600;
  cursor: pointer;
}
.resend-btn:hover { text-decoration: underline; }

/* ── Google ── */
.google-btn-wrapper {
  text-align: center;
}
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: 0.2s;
  margin-top: 12px;
}
.google-btn:hover {
  background: var(--bg-active-chat);
}
.google-btn svg {
  width: 20px;
  height: 20px;
}
