:root{
  --primary:#1D4ED8;
  --accent:#14B8A6;
  --bg:#F8FAFC;
  --card:#FFFFFF;
  --text:#0F172A;
  --muted:#64748B;
  --border:#E2E8F0;
  --danger:#EF4444;

  --shadow: 0 20px 50px rgba(2, 6, 23, 0.10);
  --radius: 18px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 10% 0%, rgba(29,78,216,.10), transparent),
              radial-gradient(900px 500px at 90% 20%, rgba(20,184,166,.10), transparent),
              var(--bg);
  color:var(--text);
}

.auth-wrap{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.auth-card{
  max-width: 460px;
  width: calc(100% - 48px);
  margin: auto;
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom: 18px;
}
.logo{
  width:46px;
  height:46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #3B82F6);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:800;
  letter-spacing:.5px;
}
.brand h1{
  font-size: 18px;
  margin:0;
  line-height:1.1;
}
.brand p{
  margin:4px 0 0;
  color:var(--muted);
  font-size: 13px;
}

.alert{
  border:1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
  color: #991B1B;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 10px 0 14px;
  font-size: 13px;
}

.field{ margin: 12px 0; }
label{
  display:block;
  font-size: 13px;
  margin-bottom: 7px;
  color: #111827;
  font-weight: 600;
}
input{
  width:100%;
  padding: 12px 12px;
  border:1px solid var(--border);
  border-radius: 12px;
  outline:none;
  font-size: 14px;
  background: #fff;
  transition: .2s ease;
}
input:focus{
  border-color: rgba(29,78,216,.55);
  box-shadow: 0 0 0 4px rgba(29,78,216,.10);
}
.hint{
  display:block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.password-wrap{
  display:flex;
  gap:10px;
  align-items:center;
}
.eye{
  border:1px solid var(--border);
  background:#fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  transition:.2s ease;
}
.eye:hover{ border-color: rgba(29,78,216,.4); }

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin: 8px 0 14px;
}
.checkbox{
  display:flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  color: var(--muted);
}
.checkbox input{ width:16px; height:16px; }

.link{
  color: var(--primary);
  text-decoration:none;
  font-size: 13px;
  font-weight: 600;
}
.link:hover{ text-decoration: underline; }

.btn-primary{
  width:100%;
  border:none;
  background: linear-gradient(135deg, var(--primary), #2563EB);
  color:#fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor:pointer;
  transition:.2s ease;
}
.btn-primary:hover{ transform: translateY(-1px); }
.btn-primary:active{ transform: translateY(0px); }
.btn-primary:disabled{
  opacity:.7;
  cursor:not-allowed;
}

.divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 12px;
}
.divider::before, .divider::after{
  content:"";
  height:1px;
  background: var(--border);
  flex:1;
}

.btn-outline{
  display:block;
  text-align:center;
  width:100%;
  border:1px solid var(--border);
  background:#fff;
  color: var(--text);
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration:none;
  transition:.2s ease;
}
.btn-outline:hover{
  border-color: rgba(20,184,166,.55);
  box-shadow: 0 0 0 4px rgba(20,184,166,.10);
}

.footer{
  margin-top: 16px;
  display:flex;
  justify-content:center;
  gap:10px;
  align-items:center;
  color: var(--muted);
  font-size: 12px;
}
.dot{ opacity:.5; }

.auth-side{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 36px;
}
.side-inner{
  max-width: 520px;
  background: rgba(255,255,255,.55);
  border:1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
}
.side-inner h2{
  margin:0 0 10px;
  font-size: 28px;
}
.side-inner p{
  margin:0 0 16px;
  color: var(--muted);
  line-height:1.6;
}
.features{
  margin:0;
  padding-left: 18px;
  color: var(--text);
  line-height:1.9;
}

@media (max-width: 920px){
  .auth-wrap{ grid-template-columns: 1fr; }
  .auth-side{ display:none; }
}