/* =====================================================================
   SSKV Login — presentation only (colours from the CA logo)
   ===================================================================== */
:root {
  --sk-font: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --navy-900: #0a1a33;
  --navy-800: #0f2342;
  --navy-700: #13315c;
  --navy-600: #1d4f91;
  --navy-500: #2b63b0;
  --green-500: #4fa83d;
  --green-400: #6cc35a;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #dfe5ee;
  --bg: #f4f7fb;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.sk-login {
  margin: 0;
  font-family: var(--sk-font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.sk-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* ---------- brand panel ---------- */
.sk-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 56px clamp(32px, 6vw, 88px);
  color: #fff;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(43, 99, 176, .55) 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(79, 168, 61, .28) 0%, transparent 60%),
    linear-gradient(150deg, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
}
.sk-brand::before {            /* fine dotted texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.2));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.2));
  pointer-events: none;
}
.sk-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  animation: sk-float 14s ease-in-out infinite;
}
.sk-orb-1 { width: 380px; height: 380px; right: -120px; top: -120px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.16), rgba(255,255,255,0) 70%); }
.sk-orb-2 { width: 260px; height: 260px; left: -80px; bottom: -60px; background: radial-gradient(circle at 50% 50%, rgba(108,195,90,.30), rgba(108,195,90,0) 70%); animation-delay: -5s; }
.sk-orb-3 { width: 140px; height: 140px; right: 18%; bottom: 14%; border: 1px solid rgba(255,255,255,.14); filter: none; animation-duration: 10s; animation-delay: -2s; }

.sk-tick {
  position: absolute;
  right: 6%;
  top: 14%;
  width: 220px;
  opacity: .22;
  pointer-events: none;
}
.sk-tick path {
  fill: none;
  stroke: var(--green-400);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: sk-draw 1.6s .5s var(--ease) forwards;
}

.sk-brand-inner { position: relative; max-width: 480px; }
.sk-brand-logo {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 255, 255, .08);
  animation: sk-pop .7s var(--ease) both;
}
.sk-brand-logo img { width: 74px; height: auto; border-radius: 10px; }
.sk-brand-title {
  margin: 28px 0 6px;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.05;
  animation: sk-rise .7s .1s var(--ease) both;
}
.sk-brand-sub {
  margin: 0 0 34px;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, .78);
  animation: sk-rise .7s .18s var(--ease) both;
}
.sk-features { list-style: none; margin: 0 0 40px; padding: 0; }
.sk-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, .9);
  animation: sk-rise .6s var(--ease) both;
}
.sk-features li:nth-child(1) { animation-delay: .28s; }
.sk-features li:nth-child(2) { animation-delay: .36s; }
.sk-features li:nth-child(3) { animation-delay: .44s; }
.sk-dot {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(108, 195, 90, .18);
  position: relative;
}
.sk-dot::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid var(--green-400);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sk-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: sk-rise .6s .52s var(--ease) both;
}
.sk-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  transition: background-color .2s ease, transform .2s ease;
}
.sk-contact a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.sk-contact svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- login panel ---------- */
.sk-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(29, 79, 145, .07), transparent 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(79, 168, 61, .07), transparent 70%),
    var(--bg);
}
.sk-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 22px;
  padding: 40px 36px 30px;
  box-shadow: 0 30px 60px -24px rgba(15, 35, 66, .25), 0 8px 18px -10px rgba(15, 35, 66, .12);
  animation: sk-rise .7s .15s var(--ease) both;
  position: relative;
}
.sk-card::before {             /* logo-colour accent bar */
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  top: 0;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--navy-600), var(--green-500));
}
.sk-card-logo { display: none; }
.sk-card-title { margin: 0 0 6px; font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.sk-card-sub { margin: 0 0 28px; font-size: 14.5px; color: var(--muted); }

.sk-form { margin: 0; }
.sk-field { margin-bottom: 18px; animation: sk-rise .55s var(--ease) both; }
.sk-field:nth-of-type(2) { animation-delay: .3s; }
.sk-field:nth-of-type(3) { animation-delay: .38s; }
.sk-label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 500; color: #1e293b; }
.sk-input-wrap { position: relative; }
.sk-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke .2s ease;
}
.sk-input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 44px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.sk-input::placeholder { color: #9aa6b8; }
.sk-input:hover { border-color: #c8d2e0; }
.sk-input:focus { background: #fff; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(29, 79, 145, .14); }
.sk-input-wrap:focus-within .sk-ico { stroke: var(--navy-600); }
.sk-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }

.sk-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .2s ease, color .2s ease;
}
.sk-eye:hover { background: #eef3fa; color: var(--navy-600); }
.sk-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-eye .sk-eye-closed { display: none; }
.sk-eye.is-on .sk-eye-open { display: none; }
.sk-eye.is-on .sk-eye-closed { display: block; }

.sk-actions { margin-top: 26px; animation: sk-rise .55s .46s var(--ease) both; }
.sk-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--navy-500) 0%, var(--navy-600) 45%, var(--navy-700) 100%);
  background-size: 160% 160%;
  box-shadow: 0 14px 26px -12px rgba(29, 79, 145, .7);
  transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease;
  -webkit-appearance: none;
}
.sk-btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 30px -12px rgba(29, 79, 145, .8); }
.sk-btn:active { transform: translateY(0) scale(.99); }
.sk-btn:focus-visible { outline: 3px solid rgba(79, 168, 61, .6); outline-offset: 3px; }

.sk-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.sk-secure svg { width: 15px; height: 15px; fill: none; stroke: var(--green-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sk-foot { margin-top: 28px; font-size: 12.5px; color: #94a3b8; }

/* ---------- motion ---------- */
@keyframes sk-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sk-pop { from { opacity: 0; transform: scale(.85) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes sk-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, 18px); } }
@keyframes sk-draw { to { stroke-dashoffset: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .sk-shell { grid-template-columns: 1fr; }
  .sk-brand { padding: 40px 28px 96px; min-height: 0; }
  .sk-brand-inner { max-width: none; }
  .sk-features { display: none; }
  .sk-brand-title { margin-top: 18px; }
  .sk-brand-sub { margin-bottom: 20px; }
  .sk-tick { width: 150px; top: 18px; right: 18px; }
  .sk-panel { padding: 0 18px 24px; justify-content: flex-start; }
  .sk-card { margin-top: -64px; }
}
@media (max-width: 575px) {
  .sk-brand { padding: 32px 22px 88px; text-align: center; }
  .sk-brand-logo { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto; }
  .sk-brand-logo img { width: 60px; }
  .sk-brand-title { font-size: 32px; }
  .sk-brand-sub { font-size: 14px; }
  .sk-contact { justify-content: center; }
  .sk-contact a { font-size: 12px; padding: 7px 12px; }
  .sk-card { padding: 32px 22px 24px; border-radius: 18px; }
  .sk-card::before { left: 22px; right: 22px; }
  .sk-card-title { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sk-tick path { stroke-dashoffset: 0; }
}
