/* ── FillRight Signup Page ── */

.auth-page {
  background: var(--bg-subtle);
  min-height: 100vh;
}

.nav-auth {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-auth .nav-inner {
  justify-content: center;
}

/* ── Layout ── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
  margin-top: 72px;
}

/* ── Left Hero Panel ── */
.auth-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deeper) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.auth-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.auth-hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 440px;
}

.auth-hero-content h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.auth-hero-content p {
  font-size: 17px;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 32px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  opacity: 0.9;
}

.auth-feature svg {
  flex-shrink: 0;
}

/* ── Right Panel ── */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.auth-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Google Button ── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-google:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

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

.auth-divider span {
  padding: 0 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ── Form ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input {
  font-family: 'DM Sans', sans-serif;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-subtle);
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus {
  border-color: var(--brand);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

/* ── Buttons ── */
.btn-full {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
}

.btn-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

/* ── Messages ── */
.auth-error {
  background: #FEE2E2;
  color: #DC2626;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  text-align: center;
  font-weight: 500;
}

.auth-success {
  background: #D1FAE5;
  color: #065F46;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  text-align: center;
  font-weight: 500;
}

/* ── Footer links ── */
.auth-footer-links {
  text-align: right;
  margin-top: -4px;
}

.auth-footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.auth-footer-links a:hover {
  color: var(--brand);
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.auth-switch a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ── Success View ── */
.success-icon {
  text-align: center;
  margin-bottom: 16px;
}

#successView h2 {
  text-align: center;
}

#successView .auth-subtitle {
  text-align: center;
}

.auth-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .auth-layout {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }

  .auth-hero {
    padding: 40px 24px;
    min-height: auto;
  }

  .auth-hero-content h1 {
    font-size: 28px;
  }

  .auth-panel {
    padding: 24px 16px;
  }

  .auth-card {
    padding: 28px 20px;
    box-shadow: none;
    border: none;
    background: transparent;
  }
}

/* ── Utility ── */
.hidden {
  display: none !important;
}
