:root {
  --bg-base: #09090b;
  --bg-panel: #18181b;
  --bg-input: #0c0c0e;
  --border: #27272a;
  --text-main: #f8fafc;
  --text-muted: #a1a1aa;
  --primary: #fbbf24;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 20px;
  --font: 'Inter', sans-serif;
}

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

html {
  min-height: 100%;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.05), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.05), transparent 40%);
  display: grid;
  place-items: center;
  padding: 20px;
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

.auth-page {
  width: 100%;
  max-width: 1100px;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: center;
}

/* Hero Section */
.auth-hero h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 20px;
}

.auth-hero h1 span { color: var(--primary); }

.auth-hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.auth-ball {
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

/* Auth Card */
.auth-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-card__header { margin-bottom: 32px; }
.auth-card__header h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.auth-card__header h2 span { color: var(--primary); }
.auth-card__header p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.auth-form { display: grid; gap: 20px; }

.form-field { display: grid; gap: 8px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }

.form-field input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.field-error { font-size: 12px; color: var(--danger); min-height: 14px; }

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.remember-field { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-muted); }
.remember-field input { accent-color: var(--primary); width: 16px; height: 16px; }

.auth-link { color: var(--primary); font-weight: 600; }

.auth-submit {
  background: var(--primary);
  color: #000;
  padding: 16px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  margin-top: 10px;
}

.auth-submit:active { transform: scale(0.98); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-feedback {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  display: none;
}
.auth-feedback.is-visible { display: block; background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }

.auth-switch {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-switch a { color: var(--primary); font-weight: 700; }

/* Terms Field (Cadastro) */
.terms-field {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.terms-field input { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }
.terms-field a { color: var(--primary); font-weight: 600; }

/* Mobile */
@media (max-width: 1024px) {
  .auth-shell { grid-template-columns: 1fr; gap: 40px; }
  .auth-hero { text-align: center; }
  .auth-hero p { margin: 0 auto; }
}

@media (max-width: 480px) {
  .auth-hero h1 { font-size: 42px; }
  .auth-card { padding: 32px 24px; }
}
