@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&display=swap");

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --void:       #05060b;
  --surface-1:  #0f0f12;
  --surface-2:  #141416;
  --line:       #27272a;
  --line-2:     #3f3f46;

  --text-1:     #fafafa;
  --text-2:     #a1a1aa;
  --text-3:     #52525b;
  --text-4:     #3f3f46;

  --accent:        #c9a02a;
  --accent-hi:     #d4aa35;
  --accent-sub:    rgba(201,160,42,0.08);
  --accent-border: rgba(201,160,42,0.18);
  --accent-glow:   rgba(201,160,42,0.20);

  --danger:        #ef4444;
  --danger-bg:     rgba(239,68,68,0.08);
  --danger-border: rgba(239,68,68,0.25);
  --success:       #22c55e;
  --success-bg:    rgba(34,197,94,0.08);
  --success-border:rgba(34,197,94,0.25);

  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:   150ms;
  --t-base:   250ms;
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ─── AUTH SHELL ─────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  position: relative;
  z-index: 1;
}

/* ambient glow — scoped to shell so não vaza pro dashboard */
.auth-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 70% 0%,  rgba(201,160,42,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 65% at 5%  100%, rgba(201,160,42,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 30% 30% at 50%  55%, rgba(201,160,42,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── LEFT PANEL ──────────────────────────────────── */
.auth-left {
  display: none;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
  background: linear-gradient(160deg, rgba(201,160,42,0.07) 0%, transparent 60%);
  border-right: 1px solid rgba(201,160,42,0.08);
  position: relative;
  overflow: hidden;
}

@media (min-width: 900px) {
  .auth-left { display: flex; }
}

.auth-left-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(39,39,42,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,39,42,0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

.auth-left-orb {
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,160,42,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-left-content { position: relative; z-index: 1; }

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-sub);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 32px;
}

.auth-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.82); }
}

.auth-badge-text {
  font-size: 12px;
  color: rgba(201,160,42,0.9);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.auth-left-heading {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.auth-left-sub {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 360px;
}

/* ─── RIGHT PANEL ─────────────────────────────────── */
.auth-right {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  margin: 0 auto;
}

.auth-form-wrap {
  width: 100%;
  animation: authIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

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

/* logo lockup */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.auth-logo-mark {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090b;
  font-size: 17px;
  flex-shrink: 0;
}

.auth-logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.04em;
  line-height: 1;
}

.auth-logo-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-top: 3px;
}

.auth-heading {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 36px;
  line-height: 1.6;
}

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

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.form-control {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 14px;
  font-size: max(14px, 1em);
  outline: none;
  transition:
    border-color var(--t-fast) var(--ease-out),
    background   var(--t-fast) var(--ease-out),
    box-shadow   var(--t-fast) var(--ease-out);
}

.form-control::placeholder { color: var(--text-4); }

.form-control:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ─── BUTTON ──────────────────────────────────────── */
.btn-auth {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  background: var(--accent);
  color: #09090b;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background   var(--t-fast) var(--ease-out),
    transform    var(--t-fast) var(--ease-out),
    box-shadow   var(--t-fast) var(--ease-out);
}

.btn-auth:hover {
  background: var(--accent-hi);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-auth:active  { transform: scale(0.98); box-shadow: none; }
.btn-auth:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ─── ALERTS ──────────────────────────────────────── */
.auth-alert {
  display: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-alert.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.auth-alert.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

/* ─── FOOTER ──────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-3);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-copyright {
  text-align: center;
  margin-top: 28px;
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.02em;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 480px) {
  .auth-right { padding: 32px 20px; }
  .auth-logo  { margin-bottom: 36px; }
  .auth-left-heading { font-size: 30px; }
  .auth-form-row { grid-template-columns: 1fr; }
}
