/* ── Auth view ─────────────────────────────────────────── */
#view-auth {
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 70%),
    var(--bg-base);
  padding: 24px;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Logo */
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.auth-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.auth-logo h1 span { color: var(--primary); }

.auth-logo p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Card */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-card .form-group { gap: 8px; }

.auth-submit-btn {
  margin-top: 4px;
  height: 46px;
  font-size: 1rem;
}

/* Footer */
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-footer a:hover { color: var(--primary); }
.auth-footer-sep { color: var(--border); }

/* Loading overlay on button */
.btn-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: var(--primary-text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; }
}
