/* ═══════════════════════════════════════
   AUTH — LOGIN & REGISTER
════════════════════════════════════════ */
:root {
  --navy:    #030460;
  --sky:     #73D2E6;
  --sky2:    #C8F3FA;
  --primary: #0096C8;
  --white:   #ffffff;
  --gray:    #4a5e7a;
  --light:   #f4f6f9;
}

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

.auth-body {
  font-family: 'DM Sans', sans-serif;
  background: var(--light);
  min-height: 100vh;
  display: flex;
}

/* ── Wrapper ── */
.auth-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── Left panel ── */
.auth-left {
  width: 42%;
  background-image: url('/img/background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 36px 40px;
}

/* Overlay biru muda — sama seperti hero landing page */
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(3,4,96,.72) 0%,
    rgba(0,100,160,.58) 50%,
    rgba(0,150,200,.45) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.auth-left-top {
  position: relative;
  z-index: 2;
}

.auth-logo-white {
  max-width: 160px;
  height: auto;
  margin-bottom: 36px;
  filter: brightness(0) invert(1);
}

.auth-tagline {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}

.auth-tagline-sub {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

/* Decorative pills */
.auth-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
  align-items: flex-start;
}
.auth-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  animation: pillSlide .5s ease both;
}
.auth-pill:nth-child(1) { animation-delay: .1s; }
.auth-pill:nth-child(2) { animation-delay: .2s; }
.auth-pill:nth-child(3) { animation-delay: .3s; }
@keyframes pillSlide {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Wave SVG at bottom */
.auth-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
}
.auth-wave svg { width: 100%; height: 100%; }

/* Dot pattern background */
.auth-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* ── Right panel ── */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--light);
}

/* ── Card ── */
.auth-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(3,4,96,.08);
  animation: authFadeIn .45s ease both;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card header ── */
.auth-card-header { margin-bottom: 28px; }
.auth-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 6px;
}
.auth-card-sub { font-size: 13.5px; color: var(--gray); }

/* ── Fields ── */
.auth-field { margin-bottom: 18px; }
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 13px;
  color: var(--gray);
  font-size: 15px;
  pointer-events: none;
}
.auth-input {
  width: 100%;
  padding: 10px 40px 10px 38px;
  border: 1.5px solid #d8eaf0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--navy);
  background: #f8fdfe;
  outline: none;
  transition: border .2s, box-shadow .2s;
}
.auth-input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,150,200,.1);
}
.auth-input.is-invalid { border-color: #e53935; }
.auth-eye {
  position: absolute;
  right: 11px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.auth-eye:hover { color: var(--primary); }

/* ── Error ── */
.auth-error {
  font-size: 12px;
  color: #e53935;
  margin-top: 5px;
}

/* ── Alert ── */
.auth-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
}
.auth-alert-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
}

/* ── Remember / Check ── */
.auth-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
}
.auth-check input { accent-color: var(--primary); }

/* ── Links ── */
.auth-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.auth-link:hover { text-decoration: underline; }
.fw-600 { font-weight: 600; }

/* ── Primary button ── */
.auth-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #0073a8 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 16px rgba(0,150,200,.3);
  text-decoration: none;
}
.auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,150,200,.35);
}

/* ── Footer text ── */
.auth-footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}

/* ── Icon wrap (forgot/reset) ── */
.auth-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(0,150,200,.1);
  color: var(--primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .auth-card { padding: 32px 24px 28px; }
}
@media (max-width: 480px) {
  .auth-card { padding: 28px 18px 24px; border-radius: 16px; }
  .auth-card-title { font-size: 22px; }
}
