/* Halaman login / lupa password — gaya sama dengan website depan */
:root {
  --navy: #1b2f7a; --navy-dark: #12215a; --red: #d7262e; --red-dark: #b81f26; --yellow: #f7cd2e;
  --ink: #1a1d29; --body: #3d4352; --muted: #6b7180; --line: #e4e2dc; --paper: #fbfaf6;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Nunito", system-ui, sans-serif; font-weight: 600; color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2 { color: var(--ink); font-weight: 900; line-height: 1.2; margin: 0 0 .4em; }

.auth { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.1fr); }

/* Panel brand */
.auth-brand {
  position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .8);
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 56px);
}
.auth-brand::after {
  content: ""; position: absolute; right: -90px; bottom: -90px; width: 300px; height: 300px; border-radius: 28px;
  background: var(--yellow); opacity: .95; transform: rotate(12deg);
}
.auth-brand::before {
  content: ""; position: absolute; right: 150px; bottom: -40px; width: 120px; height: 120px; border-radius: 20px;
  background: var(--red); transform: rotate(-8deg);
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-back { color: rgba(255, 255, 255, .8); font-weight: 800; font-size: .92rem; display: inline-flex; gap: .5rem; align-items: center; }
.auth-back:hover { color: var(--yellow); }
.auth-brand-body { max-width: 440px; }
.auth-logo { background: #fff; border-radius: 14px; padding: 14px 18px; width: 170px; margin-bottom: 2rem; }
.auth-logo img { width: 100%; display: block; }
.auth-greet { color: var(--yellow); font-weight: 800; margin: 0 0 .4rem; }
.auth-brand h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.auth-lead { font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.6rem; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.auth-points li { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: #fff; }
.auth-points i { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--yellow); font-size: .9rem; }
.auth-foot { font-size: .85rem; margin: 0; }

/* Form */
.auth-main { display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); }
.auth-card { width: 100%; max-width: 420px; animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.auth-mobile-logo { display: none; height: 64px; margin-bottom: 1.5rem; }
.auth-card h1 { font-size: 1.9rem; }
.auth-card .sub { color: var(--muted); margin: 0 0 1.8rem; line-height: 1.6; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 800; color: var(--ink); font-size: .9rem; margin-bottom: .35rem; }
.input-wrap { position: relative; }
.input-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .95rem; pointer-events: none; }
.input-wrap input {
  width: 100%; font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 1.5px solid #d6d3cb; border-radius: 10px;
  padding: .85rem 1rem .85rem 2.6rem; transition: border-color .2s, box-shadow .2s;
}
.input-wrap input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(27, 47, 122, .12); }
.input-wrap input:focus + i, .input-wrap:focus-within > i { color: var(--navy); }
.input-wrap.has-error input { border-color: var(--red); }
.toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 40px; height: 40px; border-radius: 8px; cursor: pointer; }
.toggle-pass:hover { color: var(--navy); background: var(--paper); }
.error { color: var(--red); font-size: .85rem; font-weight: 700; margin-top: .35rem; display: flex; gap: .35rem; align-items: center; }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: .4rem 0 1.5rem; font-size: .92rem; }
.check { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 700; color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }

.btn {
  width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: .55rem; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1rem; padding: .95rem 1.2rem; border-radius: 10px; background: var(--red); color: #fff;
  transition: background-color .2s, transform .15s;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn i { transition: transform .25s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn.loading { opacity: .75; pointer-events: none; }
.btn.loading i { animation: fa-spin 1s linear infinite; }
.btn.loading i::before { content: "\f110"; }

.note { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; line-height: 1.6; display: flex; gap: .6rem; }
.note i { color: var(--navy); margin-top: .2rem; }

.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 10px; font-weight: 700; font-size: .93rem; margin-bottom: 1.2rem; border: 1px solid; }
.alert i { margin-top: .2rem; }
.alert-error, .alert-danger { background: #fdecec; border-color: #f5c2c4; color: #9b1c22; }
.alert-warning { background: #fff7d9; border-color: #f3e09a; color: #7a5b00; }
.alert-success { background: #e8f6ee; border-color: #b9e2c8; color: #1d6b3d; }
.alert-info { background: #eaf0fb; border-color: #c4d3f1; color: var(--navy); }
.alert .alert-icon, .alert .alert-title { display: inline; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mobile-logo { display: block; }
}
@media (prefers-reduced-motion: reduce) { .auth-card { animation: none; } }
