/* ============================================================
   Login page styles
   ============================================================ */

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Brand panel (left) ────────────────────────────────────── */
.login-brand {
  background: hsl(0 0% 7%);
  color: white;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-brand::after {
  content: "";
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    hsl(var(--primary) / 0.5) 30%,
    hsl(var(--primary) / 0.7) 50%,
    hsl(var(--primary) / 0.5) 70%,
    transparent 100%
  );
  box-shadow: 0 0 18px 4px hsl(var(--primary) / 0.25);
  pointer-events: none;
}

.login-brand-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, hsl(var(--primary) / 0.28), transparent 40%),
    radial-gradient(circle at 80% 70%, hsl(var(--primary) / 0.18), transparent 50%);
  pointer-events: none;
}

.login-brand-top {
  position: relative;
}
.login-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-brand-logo .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  font-size: 16px;
}

.login-brand-middle { position: relative; max-width: 460px; }

.login-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  font-size: 11px;
  font-weight: 500;
  border: 1px solid hsl(var(--primary) / 0.3);
  margin-bottom: 18px;
}

.login-brand-headline {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.login-brand-sub {
  font-size: 14px;
  color: hsl(0 0% 65%);
  margin-top: 14px;
  line-height: 1.6;
}

.login-brand-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: hsl(0 0% 50%);
}
.login-brand-link {
  color: hsl(0 0% 50%); text-decoration: none; transition: color .15s;
}
.login-brand-link:hover { color: hsl(0 0% 80%); }

/* ── Feature list ─────────────────────────────────────────── */
.login-features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.login-feature-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 8px;
  background: hsl(var(--primary) / 0.15);
  border: 1px solid hsl(var(--primary) / 0.25);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.login-feature-title {
  font-size: 13px; font-weight: 600; color: hsl(0 0% 92%);
  margin-bottom: 2px;
}
.login-feature-desc {
  font-size: 12px; color: hsl(0 0% 58%); line-height: 1.5;
}

/* ── Form panel (right) ────────────────────────────────────── */
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: hsl(var(--background));
}

.login-form {
  width: 100%;
  max-width: 380px;
}

.login-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: hsl(var(--foreground));
}

.login-subtitle {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  margin: 4px 0 24px;
}

.login-remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 18px;
}

.login-forgot {
  font-size: 12px;
  color: hsl(var(--primary));
  text-decoration: none;
}
.login-forgot:hover { text-decoration: underline; }

.login-divider {
  height: 1px;
  background: hsl(var(--border));
  margin: 20px 0;
  position: relative;
}
.login-divider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: hsl(var(--background));
  padding: 0 10px;
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-help-text {
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  margin-top: 10px;
  text-align: center;
}

.login-form-logo { display: block; margin-bottom: 28px; }

@media (max-width: 768px) {
  .login-shell  { grid-template-columns: 1fr; }
  .login-brand  { display: none; }
}
