/**
 * Login admin — Pelataran Putih / brand Palengaan
 * Wallpaper: hero image dari settings
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

body.page-login {
  --pl-ink: #111827;
  --pl-muted: #4b5563;
  --pl-accent: #1d4ed8;
  --pl-white: #ffffff;
  --pl-line: rgba(17, 24, 39, 0.1);
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--pl-ink);
  background: #0f172a;
}

.login-wall {
  position: fixed;
  inset: 0;
  background:
    var(--pl-hero-image, url("../img/kantor.jpg")) center center / cover no-repeat;
  transform: scale(1.02);
  z-index: 0;
}

.login-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.35) 45%, rgba(15, 23, 42, 0.62) 100%),
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(255, 255, 255, 0.12), transparent 70%);
}

.login-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.login-panel {
  width: 100%;
  max-width: 26rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  position: relative;
  overflow: hidden;
  animation: loginRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 22px 22px 0 0;
  border-color: #c8102e transparent transparent transparent;
}

@keyframes loginRise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  text-decoration: none;
  color: inherit;
}

.login-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.login-brand__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--pl-ink);
}

.login-brand__sub {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--pl-muted);
  line-height: 1.35;
}

.login-form .form-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pl-muted);
  margin-bottom: 0.35rem;
}

.login-form .form-control {
  border-radius: 0.7rem;
  border-color: var(--pl-line);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--pl-ink);
  background: #fff;
}

.login-form .form-control:focus {
  border-color: var(--pl-accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.login-form .input-group-text {
  border-radius: 0 0.7rem 0.7rem 0;
  border-color: var(--pl-line);
  background: #fff;
  color: var(--pl-muted);
}

.login-form .input-group .form-control {
  border-radius: 0.7rem 0 0 0.7rem;
}

.login-form .form-check-label {
  color: var(--pl-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.login-form .form-check-input:checked {
  background-color: var(--pl-accent);
  border-color: var(--pl-accent);
}

.login-submit {
  width: 100%;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--pl-accent);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.login-submit:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.login-submit:focus-visible {
  outline: 2px solid var(--pl-accent);
  outline-offset: 2px;
}

.login-meta {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--pl-muted);
}

.login-meta a {
  color: var(--pl-accent);
  font-weight: 700;
  text-decoration: none;
}

.login-meta a:hover {
  text-decoration: underline;
}

.login-alert {
  border-radius: 0.7rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
  .login-panel {
    padding: 1.5rem 1.15rem 1.25rem;
    border-radius: 1rem;
  }

  .login-brand img {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-panel {
    animation: none !important;
  }

  .login-wall {
    transform: none;
  }
}
