/* ============================================================
   Point Pi HRM — Login Page Layout
   Standalone (no sidebar/topbar). Uses hrm-ui.css tokens.
   ============================================================ */

/* ─── Full-page shell ─── */
body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--bg);
  padding: 0 !important; /* override any BS3 shim */
}

.hrm-login-wrap {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ─── Left brand panel ─── */
.hrm-login-brand {
  flex: 0 0 420px;
  background: linear-gradient(150deg, var(--brand-700) 0%, var(--brand) 55%, #0EA5E9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* decorative circles */
.hrm-login-brand::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: -140px; right: -140px;
  pointer-events: none;
}
.hrm-login-brand::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  bottom: -90px; left: -90px;
  pointer-events: none;
}

.hrm-login-logo {
  width: 56px; height: 56px;
  object-fit: contain;
  margin-bottom: 24px;
  position: relative; z-index: 1;
  filter: brightness(0) invert(1); /* white logo on coloured bg */
}

.hrm-login-brand-name {
  font-size: 26px; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 10px;
  position: relative; z-index: 1;
}

.hrm-login-tagline {
  font-size: 14px; opacity: .75;
  text-align: center; line-height: 1.7;
  position: relative; z-index: 1;
  margin: 0;
}

/* Feature bullets */
.hrm-login-features {
  list-style: none;
  padding: 0; margin: 32px 0 0;
  position: relative; z-index: 1;
}
.hrm-login-features li {
  font-size: 13px; opacity: .8;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.hrm-login-features li i {
  font-size: 15px; opacity: .9;
  flex-shrink: 0;
}

/* ─── Right form panel ─── */
.hrm-login-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.hrm-login-card {
  width: 100%;
  max-width: 400px;
}

.hrm-login-title {
  font-size: 26px; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink);
  margin: 0 0 6px;
}

.hrm-login-sub {
  color: var(--ink-3); font-size: 14px;
  margin: 0 0 28px;
}

/* ─── Password field wrapper ─── */
.hrm-pass-wrap { position: relative; }
.hrm-pass-wrap .hrm-input { padding-right: 42px; }
.hrm-pass-eye {
  position: absolute;
  right: 11px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); cursor: pointer;
  background: none; border: none; padding: 4px; line-height: 1;
  font-size: 15px; border-radius: var(--r-sm);
  transition: color .12s;
}
.hrm-pass-eye:hover { color: var(--ink); }

/* ─── Floating theme toggle ─── */
.hrm-login-theme-btn {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 200;
}

/* ─── Submit button full-width ─── */
.hrm-login-card .hrm-btn-primary.w-100 {
  width: 100%;
  justify-content: center;
  font-size: 14px; font-weight: 600;
  padding: 12px 20px;
}

/* ─── Switch-role link ─── */
.hrm-login-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-4);
}
.hrm-login-switch a {
  color: var(--brand);
  font-weight: 600;
}
.hrm-login-switch a:hover { text-decoration: underline; }

/* ─── Dark mode adjustments ─── */
[data-theme="dark"] .hrm-login-brand {
  background: linear-gradient(150deg, #0D4F72 0%, #0F6FA8 55%, #0A84BC 100%);
}
[data-theme="dark"] .hrm-login-logo {
  filter: brightness(0) invert(1);
}

/* ─── Responsive: hide brand panel on small screens ─── */
@media (max-width: 860px) {
  .hrm-login-brand { display: none; }
}
@media (max-width: 480px) {
  .hrm-login-panel { padding: 32px 16px; align-items: flex-start; padding-top: 60px; }
}
