/* =====================================================================
   BioNex HR — IOCL LBP · sign-in / password / registration screens
   ===================================================================== */
:root {
  --navy-950: #0b1638; --navy-900: #101f4b; --navy-800: #16295f; --navy-700: #1d3577; --navy-600: #2a4a9b;
  --accent: #f37021; --accent-600: #dc5f12;
  --bg: #eef1f7; --border: #d6dceb; --text: #1a2236; --text-2: #4a5571; --muted: #7b86a1;
  --danger: #d92d20;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font: 14px/1.5 var(--font); color: var(--text);
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(243, 112, 33, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(42, 74, 155, .12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card {
  width: 100%; max-width: 960px; min-height: 540px;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(16, 31, 75, .16), 0 2px 6px rgba(16, 31, 75, .06);
}
.auth-card.narrow { max-width: 860px; }

/* brand side */
.auth-aside {
  position: relative; overflow: hidden;
  padding: 44px 40px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-950) 100%);
}
.auth-aside::before, .auth-aside::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.auth-aside::before { width: 360px; height: 360px; right: -140px; top: -120px; border: 48px solid rgba(255, 255, 255, .04); }
.auth-aside::after  { width: 220px; height: 220px; left: -70px; bottom: -80px; background: rgba(243, 112, 33, .18); filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 22px; box-shadow: 0 8px 20px rgba(243, 112, 33, .35);
}
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.brand-sub { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #ffb98d; }
.aside-copy { position: relative; z-index: 1; }
.aside-copy h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.aside-copy p { margin: 0; color: #c3cce6; font-size: 14px; max-width: 34ch; }
.aside-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.aside-points li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #dbe2f4; }
.aside-points i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #ffb98d; font-size: 12px; }
.aside-foot { position: relative; z-index: 1; font-size: 12px; color: #8f9cc2; }

/* form side */
.auth-main { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-main .client-logo { height: 44px; width: auto; align-self: flex-start; margin-bottom: 26px; }
.auth-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); }
.auth-lead { margin: 6px 0 26px; color: var(--muted); font-size: 13.5px; }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .control { position: relative; }
.field .control > i {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 14px; pointer-events: none;
}
.field input, .field select {
  width: 100%; height: 44px; padding: 0 14px 0 40px;
  border: 1px solid var(--border); border-radius: 10px; background: #f9fafd;
  font: 500 14px var(--font); color: var(--text);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field input::placeholder { color: #a3acc2; }
.field input:focus, .field select:focus {
  outline: 0; background: #fff; border-color: var(--navy-600);
  box-shadow: 0 0 0 4px rgba(42, 74, 155, .12);
}

.auth-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.btn-auth {
  flex: 1 1 auto; height: 44px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  font: 700 14px var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-auth.primary { background: var(--navy-700); color: #fff; box-shadow: 0 8px 18px rgba(29, 53, 119, .25); }
.btn-auth.primary:hover { background: var(--navy-900); color: #fff; }
.btn-auth.ghost { background: #fff; color: var(--text-2); border-color: var(--border); }
.btn-auth.ghost:hover { border-color: var(--navy-600); color: var(--navy-800); }
.auth-link { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--navy-600); text-decoration: none; }
.auth-link:hover { color: var(--accent-600); }
.hint { margin-top: 10px; font-size: 12px; color: var(--muted); }

.swal2-popup { font-family: var(--font) !important; border-radius: 14px !important; }
.swal2-styled.swal2-confirm { background: var(--navy-700) !important; border-radius: 8px !important; }

@media (max-width: 820px) {
  .auth-card, .auth-card.narrow { grid-template-columns: 1fr; max-width: 440px; min-height: 0; }
  .auth-aside { padding: 26px 28px; }
  .aside-copy, .aside-foot { display: none; }
  .auth-main { padding: 30px 28px 34px; }
}
