/* ============ Tokens ============ */
:root{
  --bg: #f4f7fb;                 /* light app background like your dashboard */
  --surface: #ffffff;            /* card surface */
  --text: #0f172a;               /* slate-900 */
  --muted: #64748b;              /* slate-500/600 */
  --border: #e6ebf3;
  --primary: #2563eb;            /* blue-600 */
  --primary-700: #1d4ed8;        /* blue-700 */
  --success: #22c55e;            /* green-500 */
  --warning: #f59e0b;            /* amber-500 */
  --shadow-1: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ Layout ============ */
.auth-wrapper{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
}

.auth-aside{
  position: relative;
  color: #f8fafc;
  background:
    radial-gradient(900px 900px at -10% -10%, rgba(37,99,235,0.40), transparent 45%),
    radial-gradient(800px 800px at 110% 10%, rgba(139,92,246,0.30), transparent 50%),
    linear-gradient(180deg, #0b1221 0%, #0f172a 50%, #111827 100%);
  overflow: hidden;
}
.aside-inner{
  max-width: 540px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-left: auto; /* pulls content a bit to the right for visual balance */
}
.brand{
  /* height: 28px; */
  width: 50%;
  filter: brightness(200%);
  margin-bottom: 40px;
}
.aside-content h2{
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.aside-content p{
  margin: 0 0 20px;
  color: #cbd5e1;
}
.aside-points{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.aside-points li{
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-weight: 500;
}
.aside-points i{
  color: #86efac;
  font-size: 20px;
}

/* stat chip that echoes the dashboard "usage" widget */
.aside-chip{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
}
.chip-icon{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(37,99,235,.95), rgba(29,78,216,.95));
  color: #fff;
}
.chip-label{
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1;
  margin-bottom: 4px;
}
.chip-value{
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
}

.auth-main{
  display: grid;
  place-items: center;
  padding: 40px 24px;
}
.auth-card{
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  border-radius: 20px;
  padding: 28px;
}

.auth-card-header{
  margin-bottom: 10px;
}
.logo-mobile{
  display: none;
  height: 22px;
  margin-bottom: 14px;
}
.auth-card h1{
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.subtext{
  margin: 0 0 12px;
  color: var(--muted);
}

/* Alerts (soft like dashboard chips) */
.alert-inline{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  margin: 8px 0 0;
  border: 1px solid;
}
.alert-inline.success{
  color: #166534;
  background: #ecfdf5;
  border-color: #bbf7d0;
}
.alert-inline.danger{
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

/* ============ Form ============ */
.auth-form{
  margin-top: 16px;
}
.form-field{ margin-bottom: 16px; }
.form-label{
  font-weight: 600;
  font-size: 14px;
  color: #0b1221;
  margin-bottom: 8px;
}
.field{
  position: relative;
}
.field-icon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
  pointer-events: none;
}
.form-control{
  height: 52px;
  padding: 12px 14px 12px 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: #fbfdff;
  transition: border-color .15s ease, box-shadow .15s ease, background .2s ease;
}
.form-control::placeholder{ color: #9aa7b8; }
.form-control:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
  background: #fff;
}

/* Remember + Forgot row */
.form-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 16px;
}

/* Turn checkbox into a modern switch */
.form-check{
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  margin-bottom: 0;
}
.form-check-input{
  width: 40px;
  height: 22px;
  border: none;
  outline: none;
  border-radius: 999px;
  background: #e2e8f0;
  position: relative;
  cursor: pointer;
  transition: background .2s ease;
  appearance: none;
  -webkit-appearance: none;
  margin-left: 0 !important;
}
.form-check-input::before{
  content: "";
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 6px rgba(2,6,23,.2);
  transition: transform .2s ease;
}
.form-check-input:checked{
  background: var(--primary);
}
.form-check-input:checked::before{
  transform: translateX(18px);
}
.form-check-label{
  cursor: pointer;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
}

/* Links and buttons */
.link{
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.link:hover{ color: var(--primary-700); text-decoration: underline; }

.btn{
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  letter-spacing: .2px;
}
.btn-primary{
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover{
  background: var(--primary-700);
  border-color: var(--primary-700);
}

/* Footer text */
.info-msg{
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* ============ Animation ============ */
.fade-in-up{
  animation: fadeUp .45s ease-out both;
}
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ============ Responsive ============ */
@media (max-width: 1024px){
  .auth-wrapper{ grid-template-columns: 1fr; }
  .auth-aside{
    min-height: 42vh;
  }
  .aside-inner{
    margin: 0 auto;
    padding: 36px 24px;
    max-width: 680px;
  }
  .auth-main{ padding: 0 24px 40px; }
  .auth-card{ margin-top: -60px; } /* slight overlap for a premium feel */
  .logo-mobile{ display: inline-block; }
}
@media (max-width: 480px){
  .auth-card{ padding: 22px; border-radius: 16px; }
  .auth-card h1{ font-size: 24px; }
  .aside-content h2{ font-size: 26px; }
}