:root{
  --p:#07213d;
  --bg1:#071b33;
  --bg2:#0a2a55;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#6b7280;
  --line:#e6e9f2;
  --shadow: 0 14px 40px rgba(0,0,0,.12);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,.10), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(255,255,255,.10), transparent 65%),
              linear-gradient(135deg, var(--bg1), var(--bg2));
}

/* Layout */
.auth-body{ padding:18px; }
.auth-shell{
  min-height: calc(100vh - 36px);
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.auth-card{
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.auth-aside{ display:none; }

@media (min-width: 960px){
  .auth-shell{ grid-template-columns: 1.05fr .95fr; }
  .auth-card{ padding: 22px; }
  .auth-aside{ display:block; }
}

/* Brand */
.auth-brand{
  display:flex;
  gap: 12px;
  align-items:center;
  margin-bottom: 14px;
}

.logo-wrap{
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(7,33,61,.12), rgba(7,33,61,.04));
  border: 1px solid rgba(7,33,61,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex: 0 0 auto;
}

.logo-img{
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.logo-fallback{
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--p);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .5px;
}

.brand-title{
  margin: 0;
  font-size: 20px;
  letter-spacing: .4px;
  color: var(--p);
}
.brand-subtitle{
  margin: 2px 0 0;
  line-height: 1.35;
  font-size: 12.5px;
  color: #334155;
}
.muted{ color: var(--muted); }

/* Alert */
.alert{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: 14px;
  margin: 10px 0 12px;
  border: 1px solid;
}
.alert-danger{
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.alert-dot{
  width:10px; height:10px;
  border-radius:999px;
  background: #e11d48;
  margin-top: 4px;
}
.alert-text{ font-size: 13px; }

/* Form */
.auth-form{ margin-top: 6px; }

.field{ display:block; margin: 12px 0; }
.field-label{
  display:block;
  font-size: 12.5px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}
.field-control{
  position: relative;
  display:flex;
  align-items:center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  transition: border-color .2s, box-shadow .2s, transform .05s;
}
.field-control:focus-within{
  border-color: rgba(7,33,61,.55);
  box-shadow: 0 0 0 4px rgba(7,33,61,.10);
}
.field-icon{
  width: 28px;
  display:flex;
  justify-content:center;
  opacity: .8;
  font-size: 16px;
}
.field input{
  width: 100%;
  border:none;
  outline:none;
  font-size: 14.5px;
  padding: 2px 6px;
  background: transparent;
  color: var(--text);
}
.field input::placeholder{ color:#9ca3af; }

.toggle-pass{
  border:none;
  background: transparent;
  cursor:pointer;
  padding: 6px 8px;
  border-radius: 10px;
  color: #111827;
  opacity: .9;
}
.toggle-pass:active{ transform: scale(.98); }

/* Button */
.btn{
  border:none;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  cursor:pointer;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  transition: transform .05s, filter .2s;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(135deg, var(--p), #0a2b56);
  color: #fff;
  box-shadow: 0 10px 22px rgba(7,33,61,.25);
}
.btn-primary:hover{ filter: brightness(1.03); }
.btn-arrow{ font-size: 16px; }

/* Footer */
.auth-footer{
  margin-top: 14px;
  display:flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align:center;
}
.hint{
  font-size: 12.5px;
  color:#334155;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(7,33,61,.25);
  background: rgba(7,33,61,.03);
}
.small{ font-size: 12px; }

/* Aside (desktop) */
.aside-card{
  color: #e5e7eb;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.aside-card h2{
  margin: 10px 0 10px;
  font-size: 18px;
  color:#fff;
}
.aside-card ul{
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  font-size: 13px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.aside-foot{
  margin-top: 12px;
  font-size: 12px;
  color: #dbeafe;
  display:flex;
  align-items:center;
  gap:8px;
}
.dot{
  width:8px; height:8px;
  border-radius:999px;
  background: #93c5fd;
}
