/*
* Anumula — halaman masuk
* Berdiri sendiri, tidak memuat core.css template.
******************************************************************************/

:root {
  --lg-ink: #0e2a47;
  --lg-ink-soft: #1a3d63;
  --lg-blue: #5a8dee;
  --lg-blue-dark: #3f6fd1;
  --lg-blue-deep: #3459a8;
  --lg-text: #1d2c3b;
  --lg-muted: #5d6b7a;
  --lg-faint: #8b97a4;
  --lg-line: #d8dfe7;
  --lg-surface: #fff;
  --lg-danger: #c4383a;
  --lg-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--lg-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--lg-text);
  background: var(--lg-surface);
  -webkit-font-smoothing: antialiased;
}

/* --- Kerangka dua kolom --- */
.lg {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* --- Panel identitas --- */
.lg-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 56px;
  color: #fff;
  background: linear-gradient(180deg, var(--lg-ink) 0%, var(--lg-ink-soft) 100%);
}

.lg-ripple {
  position: absolute;
  right: -260px;
  bottom: -250px;
  width: 900px;
  height: 900px;
  pointer-events: none;
}

.lg-ripple__ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: lg-ripple 2.4s cubic-bezier(.2, .7, .3, 1) both;
}

.lg-ripple__ring:nth-child(2) { animation-delay: .12s; }
.lg-ripple__ring:nth-child(3) { animation-delay: .24s; }
.lg-ripple__ring:nth-child(4) { animation-delay: .36s; }
.lg-ripple__ring:nth-child(5) { animation-delay: .48s; }

@keyframes lg-ripple {
  from {
    opacity: 0;
    transform: scale(.55);
  }
}

.lg-side__top,
.lg-side__body,
.lg-side__address {
  position: relative;
}

.lg-side__body {
  max-width: 520px;
}

.lg-side__title {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lg-side__lead {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
  text-wrap: pretty;
}

.lg-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.lg-apps li {
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
}

.lg-side__address {
  font-size: 13.5px;
  font-style: normal;
  line-height: 1.6;
  color: rgba(255, 255, 255, .6);
}

/* --- Kolom form --- */
.lg-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 48px 32px 28px;
}

.lg-form-wrap {
  width: 100%;
  max-width: 380px;
  margin: auto 0;
}

.lg-logo {
  display: block;
  height: auto;
  margin-bottom: 40px;
}

.lg-title {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lg-sub {
  margin: 8px 0 28px;
  font-size: 14.5px;
  color: var(--lg-muted);
}

.lg-alert {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--lg-danger);
  background: #fdf0f0;
  border: 1px solid #f4cfcf;
  border-radius: 10px;
}

.lg-alert svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.lg-alert p {
  margin: 0;
}

.lg-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lg-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lg-text);
}

.lg-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--lg-text);
  background: #fff;
  border: 1px solid var(--lg-line);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.lg-input:hover {
  border-color: #bfc9d4;
}

.lg-input:focus {
  outline: none;
  border-color: var(--lg-blue);
  box-shadow: 0 0 0 4px rgba(90, 141, 238, .18);
}

.lg-input-group {
  position: relative;
}

.lg-input-group .lg-input {
  padding-right: 48px;
}

.lg-reveal {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--lg-faint);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
}

.lg-reveal:hover {
  color: var(--lg-muted);
}

.lg-reveal:focus-visible {
  outline: 2px solid var(--lg-blue);
  outline-offset: -2px;
}

.lg-reveal__hide,
.lg-reveal[aria-pressed="true"] .lg-reveal__show {
  display: none;
}

.lg-reveal[aria-pressed="true"] .lg-reveal__hide {
  display: block;
}

.lg-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--lg-muted);
  cursor: pointer;
  user-select: none;
}

.lg-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--lg-blue);
  cursor: pointer;
}

.lg-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  margin-top: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: var(--lg-blue-dark);
  border: 0;
  border-radius: 10px;
  transition: background-color .15s ease;
}

.lg-submit:hover {
  background: var(--lg-blue-deep);
}

.lg-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(90, 141, 238, .3);
}

.lg-submit:disabled {
  cursor: progress;
  background: var(--lg-blue-deep);
}

.lg-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lg-spin .7s linear infinite;
}

.lg-submit.is-loading .lg-spinner {
  display: block;
}

@keyframes lg-spin {
  to {
    transform: rotate(360deg);
  }
}

.lg-help {
  margin: 22px 0 0;
  font-size: 13.5px;
  color: var(--lg-muted);
}

.lg-foot {
  margin: 0;
  font-size: 12.5px;
  color: var(--lg-muted);
}

/* --- Layar sedang & kecil --- */
@media (max-width: 991.98px) {
  .lg {
    grid-template-columns: 1fr;
  }

  .lg-side {
    display: none;
  }

  .lg-main {
    padding: 40px 16px 24px;
  }

  .lg-logo {
    margin-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-ripple__ring {
    animation: none;
  }

  .lg-spinner {
    animation-duration: 1.6s;
  }
}
