/* ======================================================
   KAOKAB NOC — UNIFIED SECURE LOGIN
   ====================================================== */

:root {
  color-scheme: dark;
  --login-bg: #04111d;
  --login-brand: #061b2a;
  --login-brand-deep: #04131f;
  --login-panel: #0a1b2d;
  --login-control: #081827;
  --login-line: rgba(79, 133, 167, .34);
  --login-line-soft: rgba(79, 133, 167, .18);
  --login-text: #edf6fb;
  --login-text-secondary: #a8bdca;
  --login-text-muted: #7893a4;
  --login-cyan: #08bfe2;
  --login-blue: #1688c7;
  --login-green: #24d49a;
  --login-danger: #ff7b86;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.kaokab-login-page {
  min-width: 320px;
  margin: 0;
  color: var(--login-text);
  background:
    radial-gradient(900px 560px at 8% 8%, rgba(5, 187, 207, .10), transparent 64%),
    radial-gradient(760px 520px at 94% 92%, rgba(24, 112, 196, .11), transparent 66%),
    var(--login-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.kaokab-auth-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(420px, .84fr);
  overflow: hidden;
}

.kaokab-auth-brand,
.kaokab-auth-access {
  position: relative;
  min-width: 0;
}

.kaokab-auth-brand {
  min-height: 100vh;
  padding: clamp(34px, 5vw, 74px) clamp(34px, 6vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(740px 500px at 12% 16%, rgba(13, 210, 191, .10), transparent 62%),
    linear-gradient(145deg, var(--login-brand), var(--login-brand-deep));
  border-right: 1px solid var(--login-line-soft);
}

.kaokab-auth-network {
  position: absolute;
  z-index: -1;
  width: min(66vw, 880px);
  aspect-ratio: 1;
  right: min(-25vw, -260px);
  top: min(-29vw, -330px);
  border-radius: 50%;
  opacity: .82;
  background:
    radial-gradient(circle at center, rgba(16, 187, 224, .34) 0 2px, transparent 3px),
    repeating-radial-gradient(circle at center, transparent 0 37px, rgba(25, 135, 194, .13) 38px 39px),
    repeating-conic-gradient(from 0deg, rgba(25, 135, 194, .055) 0 .35deg, transparent .5deg 19deg);
  filter: drop-shadow(0 0 34px rgba(0, 166, 220, .06));
  pointer-events: none;
}

.kaokab-auth-logo {
  width: min(310px, 72%);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.kaokab-auth-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.kaokab-auth-story {
  width: min(680px, 100%);
  margin: clamp(54px, 8vh, 112px) 0 clamp(42px, 6vh, 78px);
}

.kaokab-auth-eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #60d9ed;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.kaokab-auth-eyebrow > span {
  width: 30px;
  height: 1px;
  background: currentColor;
}

.kaokab-auth-story h1 {
  max-width: 720px;
  margin: 0;
  color: #f4f9fc;
  font-size: clamp(38px, 4.35vw, 68px);
  line-height: 1.03;
  font-weight: 760;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.kaokab-auth-intro {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--login-text-secondary);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.7;
}

.kaokab-auth-trust {
  margin: 0 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.kaokab-auth-trust li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.kaokab-trust-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: var(--login-green);
  border: 1px solid rgba(36, 212, 154, .30);
  border-radius: 10px;
  background: rgba(20, 128, 103, .10);
}

.kaokab-trust-icon svg,
.kaokab-auth-security svg,
.kaokab-input-shell > svg,
.kaokab-password-toggle svg,
.kaokab-login-submit svg,
.kaokab-business-access a svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kaokab-trust-icon svg {
  width: 19px;
  height: 19px;
}

.kaokab-auth-trust strong,
.kaokab-auth-trust small {
  display: block;
}

.kaokab-auth-trust strong {
  color: #dceaf2;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 720;
}

.kaokab-auth-trust small {
  margin-top: 3px;
  color: var(--login-text-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.kaokab-auth-brand-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7894a5;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .25px;
}

.kaokab-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--login-green);
  box-shadow: 0 0 0 3px rgba(36, 212, 154, .10), 0 0 14px rgba(36, 212, 154, .42);
}

.kaokab-auth-access {
  min-height: 100vh;
  padding: clamp(30px, 4vw, 64px) clamp(34px, 5vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(520px 420px at 100% 0, rgba(29, 113, 185, .09), transparent 72%),
    var(--login-panel);
}

.kaokab-auth-security {
  position: absolute;
  top: clamp(28px, 4vw, 52px);
  right: clamp(32px, 4vw, 66px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8fb2c4;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .3px;
}

.kaokab-auth-security svg {
  width: 16px;
  height: 16px;
  color: var(--login-green);
}

.kaokab-auth-form-wrap {
  width: min(470px, 100%);
  margin: 34px auto 42px;
}

.kaokab-auth-heading {
  margin-bottom: 31px;
}

.kaokab-auth-heading > p {
  margin: 0 0 10px;
  color: var(--login-cyan);
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.kaokab-auth-heading h2 {
  margin: 0;
  color: var(--login-text);
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: -.035em;
}

.kaokab-auth-heading > span {
  max-width: 430px;
  margin-top: 11px;
  display: block;
  color: var(--login-text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

.kaokab-login-field {
  margin-bottom: 19px;
}

.kaokab-login-field label,
.kaokab-label-row {
  color: #c9d8e1;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 720;
}

.kaokab-login-field > label {
  margin-bottom: 8px;
  display: block;
}

.kaokab-label-row {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.kaokab-label-row a {
  color: #75cbe6;
  font-size: 11.5px;
  font-weight: 680;
  text-decoration: none;
}

.kaokab-label-row a:hover {
  color: #9ce6f5;
  text-decoration: underline;
}

.kaokab-input-shell {
  position: relative;
}

.kaokab-input-shell > svg {
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: #6f91a4;
  transform: translateY(-50%);
  pointer-events: none;
}

.kaokab-input-shell input {
  width: 100%;
  height: 49px;
  margin: 0;
  padding: 0 46px;
  color: #eff7fb;
  border: 1px solid var(--login-line);
  border-radius: 9px;
  outline: none;
  background: var(--login-control);
  font: inherit;
  font-size: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.kaokab-input-shell input::placeholder {
  color: #647f90;
}

.kaokab-input-shell input:hover {
  border-color: rgba(89, 154, 193, .54);
}

.kaokab-input-shell input:focus {
  border-color: var(--login-cyan);
  background: #091c2c;
  box-shadow: 0 0 0 3px rgba(8, 191, 226, .13);
}

.kaokab-password-toggle {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 7px;
  width: 37px;
  height: 37px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #7897a8;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.kaokab-password-toggle:hover {
  color: #a8dcea;
  background: rgba(74, 154, 188, .10);
}

.kaokab-password-toggle svg {
  width: 18px;
  height: 18px;
}

.kaokab-login-alert {
  margin: 2px 0 17px;
  padding: 11px 13px;
  color: #ffd5d9;
  border: 1px solid rgba(255, 123, 134, .34);
  border-radius: 8px;
  background: rgba(154, 39, 53, .14);
  font-size: 12.5px;
  line-height: 1.45;
}

.kaokab-login-alert[hidden] {
  display: none;
}

.kaokab-login-submit {
  width: 100%;
  height: 49px;
  margin-top: 4px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #031921;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(90deg, #09b9df, #25d39a);
  box-shadow: 0 10px 26px rgba(10, 191, 191, .16);
  font-size: 13.5px;
  font-weight: 820;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.kaokab-login-submit:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow: 0 12px 30px rgba(10, 191, 191, .24);
  transform: translateY(-1px);
}

.kaokab-login-submit:disabled {
  cursor: wait;
  filter: saturate(.58);
  opacity: .76;
}

.kaokab-login-submit svg {
  width: 18px;
  height: 18px;
}

.kaokab-access-divider {
  margin: 29px 0 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #6f8999;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.kaokab-access-divider::before,
.kaokab-access-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--login-line-soft);
}

.kaokab-business-access {
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(47, 139, 174, .20);
  border-radius: 10px;
  background: rgba(8, 44, 59, .46);
}

.kaokab-business-access strong {
  color: #e0edf3;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 740;
}

.kaokab-business-access p {
  margin: 4px 0 0;
  color: #829baa;
  font-size: 10.5px;
  line-height: 1.45;
}

.kaokab-business-access a {
  min-height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #69cee7;
  font-size: 11.5px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.kaokab-business-access a:hover {
  color: #a2eafa;
}

.kaokab-business-access a svg {
  width: 15px;
  height: 15px;
}

.kaokab-provisioning-note {
  margin: 14px 8px 0;
  color: #718b9a;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.kaokab-auth-links {
  position: absolute;
  right: 0;
  bottom: clamp(23px, 3vw, 38px);
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: #698493;
  font-size: 10.5px;
}

.kaokab-auth-links a {
  color: inherit;
  text-decoration: none;
}

.kaokab-auth-links a:hover {
  color: #96c8d8;
}

.kaokab-login-page a:focus-visible,
.kaokab-login-page button:focus-visible,
.kaokab-login-page input:focus-visible {
  outline: 2px solid var(--login-cyan);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .kaokab-auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .92fr);
  }

  .kaokab-auth-brand {
    padding-inline: 42px;
  }

  .kaokab-auth-trust {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kaokab-auth-trust small {
    display: none;
  }
}

@media (max-width: 820px) {
  .kaokab-auth-shell {
    display: block;
  }

  .kaokab-auth-brand,
  .kaokab-auth-access {
    min-height: auto;
  }

  .kaokab-auth-brand {
    padding: 30px 25px 34px;
  }

  .kaokab-auth-logo {
    width: min(255px, 76%);
  }

  .kaokab-auth-story {
    margin: 49px 0 41px;
  }

  .kaokab-auth-story h1 {
    font-size: clamp(35px, 9.6vw, 52px);
  }

  .kaokab-auth-trust {
    display: none;
  }

  .kaokab-auth-access {
    padding: 60px 25px 78px;
  }

  .kaokab-auth-security {
    top: 24px;
    right: 25px;
  }

  .kaokab-auth-form-wrap {
    margin: 20px auto 30px;
  }

  .kaokab-auth-links {
    bottom: 24px;
  }
}

@media (max-width: 480px) {
  .kaokab-auth-brand-footer {
    font-size: 10px;
  }

  .kaokab-auth-access {
    padding-inline: 18px;
  }

  .kaokab-business-access {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kaokab-login-page *,
  .kaokab-login-page *::before,
  .kaokab-login-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
