:root{
  --bg: #0b0b12;
  --purple: #4b1bb7;
  --purple2:#2b0a7a;
  --card:#ffffff;
  --muted:#6b7280;
  --text:#111827;
  --line:#e5e7eb;
}

*{ box-sizing:border-box; }
html, body { height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0f1020;
}

.page-flash-wrap{
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  z-index: 9999;
}
.page-flash{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: rgba(255,255,255,.96);
  color: #111827;
  box-shadow: 0 14px 34px rgba(15,23,42,.12);
}
.page-flash-error{
  border-color: #fecaca;
  color: #b91c1c;
}
.page-flash-success{
  border-color: #bbf7d0;
  color: #166534;
}
.page-flash-warning{
  border-color: #fde68a;
  color: #92400e;
}
.page-flash-info{
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.auth{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-left{
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 800px at 20% 20%, #5a2be0 0%, var(--purple) 35%, var(--purple2) 100%);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-orbs .orb{
  position:absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  filter: blur(0px);
}
.orb-1{ width: 260px; height: 260px; top: -60px; left: -60px; }
.orb-2{ width: 320px; height: 320px; bottom: -120px; left: 20%; background: rgba(255,255,255,.10); }
.orb-3{ width: 220px; height: 220px; bottom: 40px; right: -80px; background: rgba(255,255,255,.08); }

.left-content{
  width: min(560px, 100%);
  color: rgba(255,255,255,.92);
  position: relative;
}

.floating-icons{
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.icon-bubble{
  position:absolute;
  width: 38px;
  height: 38px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.20);
  font-weight: 700;
  font-size: 13px;
}
.icon-bubble:nth-child(1){ top: 40px; left: 20px; }
.icon-bubble:nth-child(2){ top: 74px; left: 160px; }
.icon-bubble:nth-child(3){ top: 150px; right: 90px; }
.icon-bubble:nth-child(4){ bottom: 120px; left: 90px; }

.chart-card{
  width: 360px;
  height: 210px;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  padding: 14px;
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  position: relative;
}

.chart-header{
  display:flex;
  gap: 6px;
  margin-bottom: 10px;
}
.chart-header .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}

.chart-lines{
  display:grid;
  gap: 10px;
  opacity: .65;
}
.chart-lines span{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.chart-wave{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 86px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
    radial-gradient(120px 80px at 25% 60%, rgba(255,255,255,.25), rgba(255,255,255,0)),
    radial-gradient(160px 90px at 65% 50%, rgba(255,255,255,.22), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,.14);
}

.mini-card{
  position:absolute;
  width: 160px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.card-1{ top: 38px; right: 10px; }
.card-2{ bottom: 84px; right: 46px; width: 150px; }

.mini-title{ font-size: 12px; opacity:.85; }
.mini-value{ font-size: 24px; font-weight: 800; margin-top: 4px; }
.mini-sub{ font-size: 12px; opacity:.85; }

.left-text{
  margin: 20px 0 0;
  max-width: 420px;
  line-height: 1.5;
  opacity: .92;
}

.pager{
  margin-top: 18px;
  display:flex;
  gap: 8px;
}
.pg{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}
.pg.active{ background: rgba(255,255,255,.9); }

.auth-right{
  background: #f7f7fb;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 42px 24px;
}

.form-wrap{
  width: min(420px, 100%);
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 20px 70px rgba(0,0,0,.10);
}

h1{
  margin: 0 0 6px;
  color: var(--text);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.sub{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.form{ display:grid; gap: 14px; }

.field span{
  display:block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.field input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  outline: none;
  background: #fff;
  font-size: 14px;
}
.field input:focus{
  border-color: rgba(75,27,183,.35);
  box-shadow: 0 0 0 4px rgba(75,27,183,.12);
}
.field.has-error input{
  border-color: #ef4444;
  background: #fff7f7;
}
.field.has-error input:focus{
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.14);
}
.field-error{
  display: block;
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  line-height: 1.35;
}

.password-row{
  display:flex;
  gap: 8px;
  align-items:center;
}
.ghost-btn{
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 2px;
}
.check{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}
.link{
  font-size: 13px;
  color: #4b1bb7;
  text-decoration:none;
}
.link:hover{ text-decoration: underline; }

.primary{
  width:100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  background: #4b1bb7;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.primary:disabled{ opacity: .6; cursor: not-allowed; }

.divider{
  margin: 18px 0 12px;
  display:flex;
  align-items:center;
  gap: 12px;
  color: #9ca3af;
  font-size: 12px;
}
.divider:before, .divider:after{
  content:"";
  height: 1px;
  background: #e5e7eb;
  flex: 1;
}
.divider span{ padding: 0 6px; }

.secondary{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  font-weight: 600;
}
.secondary-link{
  display: block;
  text-align: center;
  color: #111827;
  text-decoration: none;
}
.secondary-link:hover{
  border-color: #d1d5db;
  text-decoration: none;
}

.fineprint{
  margin-top: 2px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.35;
}
.form-error{
  color: #dc2626;
  font-size: 13px;
  line-height: 1.4;
  margin-top: -2px;
}

.auth-switch{
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

/* Responsivo */
@media (max-width: 920px){
  .auth{ grid-template-columns: 1fr; }
  .auth-left{ display:none; }
  .auth-right{ min-height: 100vh; }
}
