/* KA_LOGIN_ENTERPRISE_TEMPLATE_LP3A_V1 */
/* KA_LOGIN_ENTERPRISE_TEMPLATE_LP3A_APP_STATIC_FINAL_V1 */
:root {
  --ka-auth-navy: #071832;
  --ka-auth-navy-2: #0d2a56;
  --ka-auth-blue: #2563eb;
  --ka-auth-blue-2: #1d4ed8;
  --ka-auth-cyan: #60a5fa;
  --ka-auth-green: #16a34a;
  --ka-auth-ink: #0f172a;
  --ka-auth-muted: #64748b;
  --ka-auth-line: #dbe3ef;
  --ka-auth-soft: #f5f8fd;
  --ka-auth-card: #ffffff;
  --ka-auth-shadow: 0 34px 90px rgba(15, 23, 42, .16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eef4ff;
}

body.ka-auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ka-font-sans);
  color: var(--ka-auth-ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, .18), transparent 32rem),
    radial-gradient(circle at 85% 78%, rgba(14, 165, 233, .12), transparent 34rem),
    linear-gradient(135deg, #eef5ff 0%, #f8fafc 48%, #eef2f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.ka-auth-page {
  width: min(1180px, 100%);
}

.ka-auth-shell {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  background: var(--ka-auth-card);
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--ka-auth-shadow);
}

.ka-auth-brand {
  position: relative;
  padding: 44px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(7, 24, 50, .98), rgba(12, 43, 88, .97)),
    radial-gradient(circle at 20% 22%, rgba(96, 165, 250, .32), transparent 18rem);
  overflow: hidden;
}

.ka-auth-brand::before {
  content: "";
  position: absolute;
  inset: auto -150px -170px auto;
  width: 470px;
  height: 470px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .24);
  border: 1px solid rgba(255, 255, 255, .12);
}

.ka-auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,24,50,.22), rgba(7,24,50,.88)),
    url("/static/ka_ui/img/kenya_aist_campus_education_wing_a.538a7f3af320.png");
  background-size: cover;
  background-position: center;
  opacity: .17;
  pointer-events: none;
}

.ka-auth-brand-inner {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.ka-auth-brand-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ka-auth-logo-card {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  padding: 8px;
  background: rgba(255, 255, 255, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .26);
  flex: 0 0 auto;
}

.ka-auth-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ka-auth-brand-title strong {
  display: block;
  font-size: var(--ka-fs-xl);
  line-height: var(--ka-lh-tight);
  letter-spacing: -.03em;
}

.ka-auth-brand-title span {
  display: block;
  margin-top: 6px;
  color: #bfdbfe;
  font-size: var(--ka-fs-xs);
  font-weight: var(--ka-fw-bold);
}

.ka-auth-hero {
  margin-top: 72px;
  max-width: 590px;
}

.ka-auth-eyebrow {
  color: #93c5fd;
  font-size: var(--ka-fs-xs);
  font-weight: var(--ka-fw-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ka-auth-hero h1 {
  margin: 0;
  font-size: var(--ka-fs-3xl);
  line-height: var(--ka-lh-tight);
  letter-spacing: -.06em;
}

.ka-auth-hero p {
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: var(--ka-fs-md);
  line-height: var(--ka-lh-relaxed);
  max-width: 560px;
}

.ka-auth-capabilities {
  margin-top: auto;
  padding-top: 48px;
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.ka-auth-capability {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
}

.ka-auth-capability-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, .36);
  background: rgba(37, 99, 235, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bfdbfe;
}

.ka-auth-capability strong {
  display: block;
  font-size: var(--ka-fs-sm);
  margin-bottom: 4px;
}

.ka-auth-capability span {
  display: block;
  color: #dbeafe;
  font-size: var(--ka-fs-xs);
  line-height: var(--ka-lh-normal);
}

.ka-auth-form-panel {
  padding: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.99));
}

.ka-auth-card {
  width: min(430px, 100%);
}

.ka-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  font-size: var(--ka-fs-xs);
  font-weight: var(--ka-fw-bold);
  margin-bottom: 22px;
}

.ka-auth-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .12);
}

.ka-auth-card h2 {
  margin: 0;
  font-size: var(--ka-fs-3xl);
  line-height: var(--ka-lh-tight);
  letter-spacing: -.045em;
}

.ka-auth-subtitle {
  margin: 9px 0 28px;
  color: var(--ka-auth-muted);
  line-height: var(--ka-lh-normal);
  font-size: var(--ka-fs-sm);
}

.ka-auth-alert {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 15px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: var(--ka-fs-xs);
  line-height: var(--ka-lh-normal);
}

.ka-auth-alert p {
  margin: 0;
}

.ka-auth-field {
  margin-bottom: 18px;
}

.ka-auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--ka-fs-xs);
  font-weight: var(--ka-fw-bold);
  color: #1e293b;
}

.ka-auth-input-wrap {
  position: relative;
}

.ka-auth-input-wrap svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: #64748b;
  pointer-events: none;
}

.ka-auth-input-wrap input {
  width: 100%;
  height: 54px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 15px 0 46px;
  font-size: var(--ka-fs-sm);
  outline: none;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ka-auth-input-wrap input:focus {
  border-color: var(--ka-auth-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}

.ka-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 20px;
  color: var(--ka-auth-muted);
  font-size: var(--ka-fs-xs);
}

.ka-auth-support {
  color: var(--ka-auth-blue-2);
  font-weight: var(--ka-fw-bold);
  text-decoration: none;
}

.ka-auth-support:hover {
  text-decoration: underline;
}

.ka-auth-button {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--ka-auth-blue), var(--ka-auth-blue-2));
  color: #fff;
  font-weight: var(--ka-fw-bold);
  font-size: var(--ka-fs-sm);
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(37, 99, 235, .28);
}

.ka-auth-button:hover {
  filter: brightness(.98);
}

.ka-auth-security-note {
  margin-top: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  border-radius: 17px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: var(--ka-fs-xs);
  line-height: var(--ka-lh-relaxed);
}

.ka-auth-security-note svg {
  width: 25px;
  height: 25px;
  color: var(--ka-auth-blue-2);
  margin-top: 1px;
}

.ka-auth-help {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ka-auth-help-card {
  padding: 13px;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.ka-auth-help-card strong {
  display: block;
  font-size: var(--ka-fs-xs);
  color: #334155;
  margin-bottom: 4px;
}

.ka-auth-help-card span {
  display: block;
  color: #64748b;
  font-size: var(--ka-fs-xs);
  line-height: var(--ka-lh-normal);
}

.ka-auth-footer {
  margin-top: 18px;
  color: #94a3b8;
  font-size: var(--ka-fs-xs);
  text-align: center;
}

.ka-auth-meta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  color: #64748b;
  font-size: var(--ka-fs-xs);
}

.ka-auth-meta-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(203, 213, 225, .7);
  text-align: center;
}

@media (max-width: 980px) {
  body.ka-auth-body {
    padding: 18px;
    align-items: flex-start;
  }

  .ka-auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ka-auth-brand {
    padding: 32px;
  }

  .ka-auth-hero {
    margin-top: 42px;
  }

  .ka-auth-capabilities {
    padding-top: 34px;
  }

  .ka-auth-form-panel {
    padding: 36px 28px;
  }

  .ka-auth-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ka-auth-brand-head {
    align-items: flex-start;
  }

  .ka-auth-logo-card {
    width: 62px;
    height: 62px;
  }

  .ka-auth-hero h1 {
    font-size: var(--ka-fs-3xl);
  }

  .ka-auth-help {
    grid-template-columns: 1fr;
  }
}


/* KA_LOGIN_PASSWORD_TOOLS_LP4B_V1 */
.ka-auth-input-wrap input[type="password"],
.ka-auth-input-wrap input[type="text"]#id_password {
  padding-right: 52px;
}

.ka-auth-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ka-auth-password-toggle:hover,
.ka-auth-password-toggle:focus {
  background: #eff6ff;
  color: #1d4ed8;
  outline: none;
}

.ka-auth-password-toggle svg {
  position: static;
  transform: none;
  width: 19px;
  height: 19px;
  pointer-events: none;
}

.ka-auth-password-toggle .ka-auth-eye-closed {
  display: none;
}

.ka-auth-password-toggle[aria-pressed="true"] .ka-auth-eye-open {
  display: none;
}

.ka-auth-password-toggle[aria-pressed="true"] .ka-auth-eye-closed {
  display: block;
}

