/* ==========================================================================
   KASHTS sign-in screens. Frames the shared auth forms; scoped to .ks-auth.
   Bootstrap is not loaded here: the forms are drawn by app.css (tw- classes).
   ========================================================================== */

.ks-auth-body { margin: 0; background: #fff; }
.dark .ks-auth-body { background: #0f172a; }

.ks-auth {
  --ks-navy: #071b55;
  --ks-blue: #153b91;
  --ks-red: #bd1729;
  --ks-serif: Georgia, "Times New Roman", serif;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

/* ── School panel ──────────────────────────────────────────────────────── */
.ks-auth-panel {
  position: relative;
  isolation: isolate;
  flex: 0 0 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 56px;
  text-align: center;
  color: #fff;
  background: var(--ks-navy);
  overflow: hidden;
}
.ks-auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, rgba(4, 17, 54, .96), rgba(7, 27, 85, .88) 55%, rgba(21, 59, 145, .78)),
    var(--ks-auth-photo) center / cover;
}
.ks-auth-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--ks-red);
}

.ks-auth-brand img {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .14);
}
.ks-auth-eyebrow {
  margin-top: 30px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d5dff7;
}
.ks-auth-eyebrow::before,
.ks-auth-eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  margin: 0 10px;
  vertical-align: middle;
  background: var(--ks-red);
}
.ks-auth-panel .ks-auth-name {
  max-width: 440px;
  margin: 14px 0 0;
  font: 700 clamp(26px, 2.6vw, 38px)/1.15 var(--ks-serif);
  color: #fff;
  text-wrap: balance;
}
.ks-auth-panel .ks-auth-motto {
  margin: 14px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f0a7b0;
}
.ks-auth-points {
  display: flex;
  gap: 22px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.ks-auth-points span { color: #f0a7b0; }

/* ── Form side ─────────────────────────────────────────────────────────── */
.ks-auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 64px;
  background: #fff;
}
.dark .ks-auth-main { background: #0f172a; }

.ks-auth-top { display: flex; justify-content: flex-end; }
.ks-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--ks-navy);
  text-decoration: none;
}
.ks-auth-back:hover { color: var(--ks-red); }
.dark .ks-auth-back { color: #c7d4f2; }

.ks-auth-form {
  width: 100%;
  max-width: 384px;
  margin: auto;
  padding: 32px 0;
}

/* The shared form's heading takes the school's serif and a crimson rule. */
.ks-auth-form > h1:first-child {
  font-family: var(--ks-serif);
  font-weight: 700;
  font-size: 30px;
  color: var(--ks-navy);
}
.ks-auth-form > h1:first-child::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 12px;
  background: var(--ks-red);
}
.dark .ks-auth-form > h1:first-child { color: #fff; }

/* Square the shared controls to the website's corners. */
.ks-auth-form input:not([type="checkbox"]):not([type="radio"]),
.ks-auth-form select,
.ks-auth-form textarea,
.ks-auth-form .tw-rounded-xl,
.ks-auth-form .tw-rounded-lg { border-radius: 3px; }
.ks-auth-form button[type="submit"] {
  border-radius: 3px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.ks-auth-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #7a869b;
}
.ks-auth-foot-motto { letter-spacing: 1.5px; }

/* ── Phones and tablets: the panel becomes a band above the form ───────── */
@media (max-width: 991.98px) {
  .ks-auth { flex-direction: column; }
  .ks-auth-panel { flex: none; padding: 26px 24px 30px; }
  .ks-auth-brand img { width: 72px; height: 72px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .14); }
  .ks-auth-eyebrow { margin-top: 14px; }
  .ks-auth-panel .ks-auth-name { font-size: 22px; margin-top: 8px; }
  .ks-auth-panel .ks-auth-motto { margin-top: 8px; }
  .ks-auth-points { display: none; }
  .ks-auth-main { padding: 8px 24px 20px; }
  .ks-auth-top { justify-content: flex-start; }
  .ks-auth-form { margin: 0 auto; padding: 16px 0 36px; }
  .ks-auth-form > h1:first-child { font-size: 26px; }
}
