/* =========================================================
   LOGIN.CSS — E-Survei RS Bhayangkara Bengkulu
   Halaman Login Admin
   ========================================================= */

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

:root {
  --navy:     #0F2040;
  --navy-mid: #1B3461;
  --gold:     #C8A84B;
  --gold-lt:  #F0D080;
  --border:   #D8DFE9;
  --red:      #dc2626;
  --red-bg:   #fee2e2;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f0f3f8;
}

/* ── Left panel ── */
.panel-left {
  background: var(--navy);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 2.5rem;
  position: relative; overflow: hidden;
}
.panel-left::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,168,75,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(42,72,128,0.5) 0%, transparent 50%);
}
.panel-left-content { position: relative; z-index: 1; text-align: center; max-width: 380px; }

.logo-circle {
  width: 110px; height: 110px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(200,168,75,0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  padding: 8px;
}
.logo-circle .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.panel-left h1 {
  color: white; font-size: 26px; font-weight: 800;
  line-height: 1.25; margin-bottom: 0.75rem;
}
.panel-left h1 span { color: var(--gold-lt); }
.panel-left p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; }
.panel-divider { width: 40px; height: 3px; background: var(--gold); border-radius: 2px; margin: 1.25rem auto; }
.features { text-align: left; margin-top: 2rem; display: flex; flex-direction: column; gap: 10px; }
.feature-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.7); font-size: 13px;
}
.feature-item .dot {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(200,168,75,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

/* ── Right panel (form) ── */
.panel-right {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 2.5rem;
  background: #f0f3f8;
}
.login-box {
  width: 100%; max-width: 400px;
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 30px rgba(15,32,64,0.08);
  border: 1px solid var(--border);
}
.login-box .box-title { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.login-box .box-sub   { font-size: 13px; color: #6B7A99; margin-bottom: 1.75rem; }

.form-group { margin-bottom: 1.125rem; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--navy); text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit; font-size: 14px; color: var(--navy);
  outline: none; transition: border-color .15s, box-shadow .15s;
  background: #fafbfd;
}
.form-group input:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(27,52,97,0.08);
  background: white;
}
.btn-login {
  width: 100%; padding: 13px;
  background: var(--navy); color: white;
  border: none; border-radius: 10px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 10px;
  transition: background .15s, transform .1s;
}
.btn-login:hover  { background: var(--navy-mid); }
.btn-login:active { transform: scale(.99); }

.alert-error {
  background: var(--red-bg); color: var(--red);
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 8px;
}
.back-link {
  display: block; text-align: center; margin-top: 1.25rem;
  font-size: 13px; color: #6B7A99; text-decoration: none;
  transition: color .15s;
}
.back-link:hover { color: var(--navy-mid); }
.login-footer {
  margin-top: 1.5rem; text-align: center;
  font-size: 12px; color: #aab0c0;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  body { grid-template-columns: 1fr; }
  .panel-left { display: none; }
  .panel-right { padding: 2rem 1.25rem; background: var(--navy); }
  .login-box { box-shadow: 0 8px 40px rgba(0,0,0,0.25); }
}
