/* EDOSIS Login — Dinas Pendidikan Kabupaten Kediri */

:root {
  --eds-blue: #1a6cff;
  --eds-blue-deep: #0d4fd6;
  --eds-navy: #0a2a5c;
  --eds-ink: #1a2b4a;
  --eds-muted: #7a8aa3;
  --eds-line: #e2eaf5;
  --eds-bg: #f4f7fb;
  --eds-font: "Poppins", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--eds-font);
  color: var(--eds-ink);
  background: var(--eds-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.eds-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  position: relative;
}

/* ---------- Left panel ---------- */
.eds-login-intro {
  position: relative;
  color: #fff;
  padding: 40px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: #0a2a5c;
}

.eds-login-intro::before {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 72px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--eds-bg));
  z-index: 2;
  pointer-events: none;
}

.eds-login-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(60, 130, 255, 0.25), transparent 55%);
  pointer-events: none;
}

.eds-login-intro > * {
  position: relative;
  z-index: 1;
}

.eds-login-brand img {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
  margin-bottom: 48px;
  animation: eds-fade-up 0.7s ease both;
}

.eds-login-copy h1 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  animation: eds-fade-up 0.75s ease 0.05s both;
}

.eds-login-copy .eds-title {
  margin: 0 0 6px;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  animation: eds-fade-up 0.75s ease 0.1s both;
}

.eds-login-copy .eds-subtitle {
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  animation: eds-fade-up 0.75s ease 0.15s both;
}

.eds-login-copy .eds-rule {
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--eds-blue);
  margin-bottom: 18px;
  animation: eds-fade-up 0.75s ease 0.18s both;
}

.eds-login-copy p {
  margin: 0;
  max-width: 38ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  animation: eds-fade-up 0.75s ease 0.22s both;
}

.eds-trust {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  animation: eds-fade-up 0.8s ease 0.28s both;
}

.eds-trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(26, 108, 255, 0.35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.eds-trust strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.eds-trust span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

/* ---------- Right panel ---------- */
.eds-login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px 28px;
  background: var(--eds-bg);
  position: relative;
}

.eds-login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(20, 50, 100, 0.1);
  padding: 36px 32px 28px;
  animation: eds-float-in 0.75s ease both;
}

.eds-login-card-head {
  text-align: center;
  margin-bottom: 26px;
}

.eds-lock-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3d8bff, #1557e0);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 12px 24px rgba(26, 108, 255, 0.28);
}

.eds-login-card-head h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--eds-ink);
}

.eds-login-card-head h2 span {
  color: var(--eds-blue);
}

.eds-login-card-head .eds-rule {
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--eds-blue);
  margin: 0 auto 10px;
}

.eds-login-card-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--eds-muted);
}

.eds-alert {
  background: #fff7e8;
  border: 1px solid #f0d7a4;
  color: #8a5a00;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.eds-field {
  margin-bottom: 16px;
}

.eds-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--eds-ink);
}

.eds-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.eds-input-wrap .eds-ico-left,
.eds-input-wrap .eds-ico-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #9aabbf;
  font-size: 0.9rem;
  pointer-events: none;
}

.eds-input-wrap .eds-ico-left {
  left: 14px;
}

.eds-input-wrap .eds-ico-right {
  right: 14px;
}

.eds-input-wrap .eds-toggle-pass {
  pointer-events: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #9aabbf;
}

.eds-input-wrap input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--eds-line);
  border-radius: 11px;
  background: #fbfcfe;
  padding: 0 42px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--eds-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.eds-input-wrap input::placeholder {
  color: #a8b6c9;
}

.eds-input-wrap input:focus {
  border-color: var(--eds-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 108, 255, 0.12);
}

.eds-captcha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.eds-captcha-q {
  height: 46px;
  border-radius: 11px;
  background: #e8f1ff;
  color: var(--eds-blue-deep);
  font-size: 1.15rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1px solid #cfe0ff;
}

.eds-captcha input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--eds-line);
  border-radius: 11px;
  background: #fbfcfe;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.eds-captcha input:focus {
  border-color: var(--eds-blue);
  box-shadow: 0 0 0 3px rgba(26, 108, 255, 0.12);
}

.eds-btn-login {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 11px;
  background: var(--eds-blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(26, 108, 255, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.eds-btn-login:hover {
  background: var(--eds-blue-deep);
  transform: translateY(-1px);
}

.eds-btn-login i {
  font-size: 1.05rem;
}

.eds-login-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--eds-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.eds-login-note i {
  font-size: 0.72rem;
  opacity: 0.8;
}

.eds-login-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 0.75rem;
  color: #9aa8bd;
}

.eds-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--eds-muted);
  transition: color 0.2s ease;
}

.eds-back-home:hover {
  color: var(--eds-blue);
}

@keyframes eds-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes eds-float-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .eds-login-page {
    grid-template-columns: 1fr;
  }

  .eds-login-intro::before {
    display: none;
  }

  .eds-login-intro {
    min-height: auto;
    padding: 28px 24px 36px;
    gap: 28px;
  }

  .eds-login-brand img {
    width: 56px;
    margin-bottom: 20px;
  }

  .eds-login-panel {
    padding: 28px 18px 24px;
  }

  .eds-login-card {
    padding: 28px 22px 22px;
  }
}
