/* ═══════════════════════════════════════
   Quanta Auth Pages — auth/style.css
   ═══════════════════════════════════════ */
:root {
  --q-font:    "Poppins", system-ui, sans-serif;
  --q-navy:    #141b4f;
  --q-navy-l:  #1e2766;
  --q-navy-d:  #0c1030;
  --q-royal:   #3528d9;
  --q-accent:  #e45b7c;
  --q-accent2: #c73d5f;
  --q-ink:     #0f172a;
  --q-muted:   #475569;
  --q-border:  #e2e8f0;
  --q-bg:      #f8fafc;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.auth-page {
  font-family: var(--q-font);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(53,40,217,.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(228,91,124,.1) 0%, transparent 50%),
    linear-gradient(160deg, #f5ece0 0%, #ede0d0 50%, #e2d0b8 100%);
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

.auth-wrap {
  width: 100%;
  max-width: 460px;
}

.auth-card {
  background: rgba(255,255,255,.96);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 44px);
  box-shadow: 0 24px 64px rgba(20,27,79,.14), 0 4px 16px rgba(20,27,79,.06);
  border: 1px solid rgba(255,255,255,.8);
  width: 100%;
  max-width: 460px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.auth-card--profile { max-width: 520px; margin: 0 auto; }

/* Logo */
.auth-logo {
  display: block;
  width: fit-content;
  text-decoration: none;
  margin-bottom: 22px;
}

.auth-logo img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.auth-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--q-navy);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.auth-sub {
  font-size: .88rem;
  color: var(--q-muted);
  margin-bottom: 22px;
}

/* Alerts */
.auth-alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.auth-alert--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.auth-alert--success { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }

/* Google button */
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  border: 1.5px solid var(--q-border);
  border-radius: 12px;
  font-family: var(--q-font);
  font-size: .9rem;
  font-weight: 600;
  color: var(--q-ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  box-shadow: 0 2px 8px rgba(20,27,79,.06);
  margin-bottom: 16px;
}

.auth-google-btn:hover {
  border-color: #aaa;
  box-shadow: 0 4px 14px rgba(20,27,79,.1);
  transform: translateY(-1px);
}

.auth-google-coming {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: var(--q-bg);
  border: 1.5px dashed var(--q-border);
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--q-muted);
  margin-bottom: 16px;
  opacity: .75;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--q-muted);
  font-size: .78rem;
  font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--q-border);
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--q-muted);
}

.auth-label .req { color: var(--q-accent); }

.auth-field input,
.auth-field select {
  font-family: var(--q-font);
  font-size: .9rem;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--q-border);
  background: #fff;
  color: var(--q-ink);
  transition: border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}

.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: var(--q-royal);
  box-shadow: 0 0 0 3px rgba(53,40,217,.12);
}

.auth-btn {
  margin-top: 4px;
  padding: 12px 24px;
  background: linear-gradient(105deg, var(--q-navy-l), var(--q-navy));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--q-font);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(20,27,79,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20,27,79,.3);
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
  font-size: .84rem;
  color: var(--q-muted);
}

.auth-switch a {
  color: var(--q-royal);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

/* Profile page */
.auth-welcome-banner {
  background: linear-gradient(105deg, rgba(53,40,217,.08), rgba(228,91,124,.08));
  border: 1px solid rgba(53,40,217,.15);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: .9rem;
  color: var(--q-navy);
  margin-bottom: 20px;
  line-height: 1.5;
}

.profile-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--q-bg);
  border-radius: 14px;
  border: 1px solid var(--q-border);
}

.profile-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(20,27,79,.12);
}

.profile-avatar-placeholder {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--q-navy-l), var(--q-royal));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--q-navy);
}

.profile-email {
  font-size: .82rem;
  color: var(--q-muted);
  margin-top: 2px;
}

.profile-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.profile-badge--google {
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #c5d8fd;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--q-border);
  flex-wrap: wrap;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--q-bg);
  color: var(--q-navy);
  border: 1.5px solid var(--q-border);
  transition: border-color .18s ease, background .18s ease;
}

.profile-link:hover { border-color: var(--q-navy); background: #fff; }

.profile-link--danger { color: #dc2626; border-color: rgba(220,38,38,.2); }
.profile-link--danger:hover { background: #fee2e2; border-color: #dc2626; }

@media (max-width: 480px) {
  .auth-row { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 18px; border-radius: 18px; }
}
