
:root {
  --bg-deep:    #08080F;
  --bg-dark:    #0D0D18;
  --bg-card:    #12121E;
  --bg-surface: #181828;
  --gradient-a: #C4A4E8;
  --gradient-b: #9BB8F0;
  --gradient-c: #A8D4C8;
  --accent:     #C4A4E8;
  --green:      #6EC99A;
  --text-1:     #F0EEF8;
  --text-2:     #9B97B0;
  --text-3:     #5E5A72;
  --border:     rgba(196,164,232,0.12);
  --border-2:   rgba(255,255,255,0.07);
  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
}

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

body {
  background: var(--bg-deep);
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  display: flex;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ─── LAYOUT: painel esquerdo + painel direito ─── */
.page-left {
  width: 52%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  background: var(--bg-dark);
  border-right: 1px solid var(--border-2);
}

/* orbs de fundo no painel esquerdo */
.page-left::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(196,164,232,.18) 0%, transparent 65%);
  top: -200px; right: -200px;
  border-radius: 50%;
  pointer-events: none;
}
.page-left::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(155,184,240,.1) 0%, transparent 65%);
  bottom: -100px; left: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.page-right {
  flex: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}

@media (max-width: 900px) {
  body { overflow: auto; }
  .page-left { display: none; }
  .page-right { width: 100%; height: auto; min-height: 100vh; padding: 40px 24px; }
}

/* ─── BRAND no painel esquerdo ─── */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-1);
  position: relative;
  z-index: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .3px;
}

.left-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
}

.left-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.5vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.3px;
}
.left-headline em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gradient-a), var(--gradient-b), var(--gradient-c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.left-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 380px;
  margin-top: 16px;
}

/* mini trust badges */
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  transition: border-color .3s;
}
.trust-badge:hover { border-color: var(--border); }
.trust-badge-icon {
  width: 36px; height: 36px;
  background: rgba(196,164,232,.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-badge-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 2px;
}
.trust-badge-text span {
  font-size: 12px;
  color: var(--text-3);
}

.left-footer {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--text-3);
}

/* ─── FORMULÁRIO (painel direito) ─── */
.login-card {
  width: 100%;
  max-width: 400px;
  animation: slide-up .5s ease both;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-card-header {
  margin-bottom: 36px;
}
.login-card-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 14px;
}
.login-card-header h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}
.login-card-header p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* error / success banners */
.banner {
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 22px;
  gap: 10px;
  align-items: flex-start;
}
.banner.show { display: flex; }
.banner-error {
  background: rgba(220,80,80,.1);
  border: 1px solid rgba(220,80,80,.25);
  color: #E88080;
}
.banner-success {
  background: rgba(110,201,154,.1);
  border: 1px solid rgba(110,201,154,.25);
  color: var(--green);
}
.banner svg { flex-shrink: 0; margin-top: 1px; }

/* campos */
.field-group { display: flex; flex-direction: column; gap: 18px; margin-bottom: 8px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
}
.field input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,164,232,.08);
}
.field input.error {
  border-color: rgba(220,80,80,.5);
}

.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 46px; }
.pwd-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  display: flex;
  align-items: center;
  transition: color .25s;
  padding: 0;
}
.pwd-toggle:hover { color: var(--text-1); }

/* lembrar + esqueceu */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 28px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  user-select: none;
}
.checkbox-label input[type="checkbox"] { display: none; }
.custom-check {
  width: 18px; height: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.checkbox-label input[type="checkbox"]:checked + .custom-check {
  background: var(--accent);
  border-color: var(--accent);
}
.custom-check svg { opacity: 0; transition: opacity .2s; }
.checkbox-label input[type="checkbox"]:checked + .custom-check svg { opacity: 1; }

.forgot-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  transition: opacity .25s;
}
.forgot-link:hover { opacity: .7; }

/* botão submit */
.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--text-1);
  color: var(--bg-deep);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .25s, transform .2s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(240,238,248,.2);
}
.btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* spinner dentro do botão */
.btn-submit .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(8,8,15,.3);
  border-top-color: var(--bg-deep);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* link de cadastro */
.signup-hint {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-3);
}
.signup-hint a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .25s;
}
.signup-hint a:hover { opacity: .7; }

/* divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-2);
}
.divider span {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* campo strength indicator (não usado aqui, mas mantido para consistência) */
.input-hint {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}