/* ============================================================
   auth.css - CertifAI static account flow
   ============================================================ */
:root {
  --auth-bg: #030605;
  --auth-surface: #FFFFFF;
  --auth-surface-soft: #F7FBF8;
  --auth-border: #E2E8F0;
  --auth-text: #0F172A;
  --auth-muted: #64748B;
  --auth-blue: #16A34A;
  --auth-blue-dark: #15803D;
  --auth-green: #16A34A;
  --auth-shadow: 0 28px 90px rgba(2, 8, 23, 0.26);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--auth-text);
  background:
    radial-gradient(circle at 20% 12%, rgba(72,240,138,0.14), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(22,163,74,0.10), transparent 28%),
    linear-gradient(135deg, #030605 0%, #06120C 55%, #030605 100%);
}

a { color: inherit; text-decoration: none; }

button, input, select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
}

.auth-brand {
  position: relative;
  padding: 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.auth-brand::after {
  content: '';
  position: absolute;
  inset: auto 6% 8% auto;
  width: min(460px, 48vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 32px;
  transform: rotate(12deg);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.auth-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.auth-logo-img {
  height: 10px;
  width: auto;
  display: block;
}

.auth-hero {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.auth-kicker {
  color: #48F08A;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.auth-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.auth-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 52ch;
}

.auth-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
}

.auth-proof-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.auth-proof-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.auth-proof-label {
  color: rgba(255,255,255,0.66);
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-panel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(248,250,252,0.96);
}

.auth-panel {
  width: 100%;
  max-width: 440px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 20px;
  box-shadow: var(--auth-shadow);
  padding: 30px;
}

.auth-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.18;
  margin-bottom: 6px;
}

.auth-sub {
  color: var(--auth-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.auth-home {
  color: var(--auth-muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.auth-home:hover { color: var(--auth-blue); }

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 0.78rem;
  color: #334155;
  font-weight: 700;
}

.auth-input,
.auth-select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: #fff;
  color: var(--auth-text);
  outline: none;
  padding: 12px 13px;
  font-size: 0.92rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-input:focus,
.auth-select:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.15);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--auth-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-check input {
  margin-top: 2px;
  accent-color: var(--auth-blue);
}

.auth-link {
  color: var(--auth-blue);
  font-weight: 700;
  font-size: 0.82rem;
}

.auth-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  background: var(--auth-blue);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 160ms ease, transform 160ms ease;
}

.auth-btn:hover {
  background: var(--auth-blue-dark);
  transform: translateY(-1px);
}

.auth-btn-secondary {
  background: #F0FDF4;
  color: var(--auth-blue);
}

.auth-btn-secondary:hover {
  background: #DCFCE7;
}

.auth-error {
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-success {
  color: #047857;
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--auth-muted);
  font-size: 0.76rem;
  margin: 18px 0;
}

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

.auth-switch {
  margin-top: 18px;
  color: var(--auth-muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-brand {
    min-height: 360px;
    padding: 28px;
    gap: 42px;
  }

  .auth-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .auth-brand { min-height: auto; }
  .auth-proof { grid-template-columns: minmax(0, 1fr); }
  .auth-panel-wrap { padding: 18px; }
  .auth-panel { padding: 22px; border-radius: 16px; }
  .auth-panel-top { flex-direction: column; }
}
