/* =========================================================
   SSR Dashboard Login · Enterprise Split (Mobile-first)
========================================================= */

:root{
  --bg:#050607;
  --panel:#0b0d0e;
  --panel2:#0f1214;

  --ink:#f2f5f7;
  --muted: rgba(255,255,255,.70);
  --soft: rgba(255,255,255,.10);
  --soft2: rgba(255,255,255,.14);

  --gold:#d9b65b;
  --gold2:#f1dd9b;
  --bad:#ff5c7a;
  --ok:#44d39a;

  --r18:18px;
  --r22:22px;
  --sh: 0 26px 80px rgba(0,0,0,.70);

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", "Noto Sans", "Liberation Sans", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  padding: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  overflow-x:hidden;
}

/* Center */
.auth-page{
  min-height: calc(100vh - 36px - env(safe-area-inset-bottom));
  display:grid;
  place-items:center;
}

/* Card (no glass) */
.auth-card{
  width: min(980px, 96vw);
  border-radius: var(--r22);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--sh);
  overflow:hidden;
  display:grid;
  grid-template-columns: 1fr;
}

/* Columns */
.auth-left,
.auth-right{
  padding: 18px;
}

/* Left = gradient elegante */
.auth-left{
  background:
    radial-gradient(900px 620px at 15% 20%, rgba(25, 160, 110, .18), transparent 60%),
    radial-gradient(700px 520px at 85% 10%, rgba(217,182,91,.18), transparent 60%),
    radial-gradient(650px 520px at 60% 90%, rgba(58, 140, 255, .12), transparent 60%),
    linear-gradient(135deg, #0a0c0d, #0e1314);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position:relative;
}

/* top bar */
.brand-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.logo-pill{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
}

.logo{
  width:34px;
  height:34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 16px;
}

.brand-name{
  font-weight: 950;
  letter-spacing:.2px;
  font-size: 13px;
  opacity:.95;
}

.env{
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
}

/* Left copy */
.left-title{
  margin: 18px 0 6px;
  font-size: 34px;
  letter-spacing:.2px;
}

.left-sub{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 46ch;
}

/* Steps */
.steps{
  display:flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap:wrap;
}

.step{
  flex: 1 1 160px;
  padding: 12px;
  border-radius: var(--r18);
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.10);
}

.step.active{
  border-color: rgba(217,182,91,.35);
  box-shadow: inset 0 0 0 1px rgba(217,182,91,.20);
}

.step-n{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  font-weight: 950;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  margin-bottom: 10px;
}

.step-t{
  font-weight: 900;
  font-size: 12px;
  opacity:.92;
}

.left-foot{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.70);
}
.left-foot .dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(217,182,91,.18);
}

/* Right panel */
.auth-right{
  background: var(--panel2);
}

.right-head h2{
  margin: 8px 0 4px;
  font-size: 18px;
  letter-spacing:.2px;
}
.right-head p{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Fields */
.field{ margin: 10px 0; }
label{
  display:block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,.82);
}

input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  outline:none;
  font-size: 14px;
}

input::placeholder{ color: rgba(255,255,255,.40); }

input:focus{
  border-color: rgba(217,182,91,.45);
  box-shadow: 0 0 0 3px rgba(217,182,91,.12);
}

/* Primary button (gold, premium) */
.btn-primary{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(217,182,91,.45);
  background: linear-gradient(180deg, rgba(241,221,155,.16), rgba(217,182,91,.10));
  color: rgba(255,255,255,.95);
  font-weight: 950;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn-primary:hover{
  transform: translateY(-1px);
  border-color: rgba(241,221,155,.55);
  background: linear-gradient(180deg, rgba(241,221,155,.20), rgba(217,182,91,.12));
}
.btn-primary:active{ transform: translateY(0) scale(.99); }
.btn-primary:disabled{ opacity:.6; cursor:not-allowed; }

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top: 12px;
  flex-wrap:wrap;
}

.hint{
  font-size: 12px;
  color: rgba(255,255,255,.72);
}

.btn-ghost{
  padding: 10px 12px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn-ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
}
.btn-ghost:active{ transform: translateY(0) scale(.99); }

.msg{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.84);
  min-height: 16px;
}
.msg.bad{ color: rgba(255,92,122,.95); }
.msg.ok{ color: rgba(68,211,154,.95); }

.tiny{
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255,255,255,.60);
  line-height: 1.4;
}

/* Desktop 2 columns */
@media (min-width: 960px){
  .auth-card{
    grid-template-columns: 1.15fr .85fr;
    min-height: 540px;
  }
  .auth-left{
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 22px;
  }
  .auth-right{
    padding: 22px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .left-title{ font-size: 44px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}