:root {
  --brand: #0e4563;
  --brand-2: #1f8bff;
  --accent: #b586ff;
  --ink: #20303a;
  --ink-dim: #6d7a86;
  --bd: #d9e0e6;
  --bd-focus: #6b8cff;
  --grad-accent: linear-gradient(
    90deg,
    var(--brand-2),
    var(--accent),
    var(--brand)
  );
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* BODY */
body.hrm-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(
    circle at top left,
    #e9f4ff 0,
    #f7fbff 45%,
    #fdf4ff 100%
  );
}

/* MAIN FLEX AREA (between header & footer) */
.login-layout {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5vh, 18px) clamp(16px, 5vw, 36px);
  box-sizing: border-box;
  overflow: hidden;
}

/* decorative background shapes */
.login-layout::before,
.login-layout::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-layout::before {
  /* left blue wave */
  left: -25%;
  bottom: -45%;
  width: 150%;
  height: 130%;
  background: linear-gradient(145deg, #0e4563 0%, #1f8bff 45%, #46c4ff 100%);
  clip-path: ellipse(72% 80% at 0% 100%);
  opacity: 0.9;
}

.login-layout::after {
  right: -20%;
  top: -35%;
  width: 60%;
  height: 80%;
  /* background: radial-gradient(circle at 20% 20%, #ffe1ff , transparent 65%); */
  opacity: 0.9;
}

.login-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

/* ============= LEFT PANEL ============= */

.login-left {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  background: transparent; /* gradient handled inside */
}

/* gradient background for card */
.login-left-inner {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: linear-gradient(135deg, #0e4563 0%, #1f8bff 45%, #46c4ff 100%);
  box-shadow: 0 30px 60px rgba(6, 38, 77, 0.35),
    0 10px 25px rgba(6, 38, 77, 0.25);
  color: #fff;
  overflow: hidden;
}

/* gradient overlays */
.left-gradient::before,
.left-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.left-gradient::before {
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.28),
    transparent 55%
  );
}

.left-gradient::after {
  background: radial-gradient(
      circle at bottom right,
      rgba(16, 24, 40, 0.35),
      transparent 55%
    ),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 50%);
}

.left-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* content inside left panel */
.left-content {
  position: relative;
  z-index: 1;
  padding: 18px 28px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* Top text */
.left-header {
  max-width: 430px;
}

.left-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.95;
}

.left-title {
  margin: 10px 0 6px;
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 800;
}

.left-subtitle {
  margin: 0;
  font-size: 0.88rem;
  max-width: 430px;
  opacity: 0.88;
}

/* Center graphic */
.left-graphic {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 6px;
}

/* bigger, more horizontal image card */
.left-graphic-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 22px 40px rgba(3, 25, 53, 0.25),
    0 6px 16px rgba(3, 25, 53, 0.25);
  max-width: 640px;
  width: 92%;
}

.left-graphic-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* Bottom: POWERED BY band – white background after line */
.left-footer {
  margin-top: auto;
  margin-left: -28px;
  margin-right: -28px;
  margin-bottom: -1px;
  padding: 10px 28px 14px;
  background: #ffffff;
  color: #0e4563;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0 0 26px 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.left-caption {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  opacity: 0.92;
}

.biznex-logo {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* ============= RIGHT PANEL ============= */

.login-right {
  display: flex;
  align-items: stretch; /* stretch to same height as left */
  justify-content: center;
}

.login-card-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* Glass login card – full column height */
.card-white {
  max-width: 500px;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.25),
    0 10px 18px rgba(15, 23, 42, 0.16);
  color: #20303a;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;

  display: flex; /* make content fill height */
  flex-direction: column;
}

/* animated top border */
.card-accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--brand-2),
    var(--accent),
    var(--brand)
  );
  background-size: 300% 100%;
  animation: shine 8s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

/* Header inside card */
.hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px 8px;
}

.logo-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #f2f5ff;
  display: grid;
  place-items: center;
}

.logo-badge img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.ttl {
  line-height: 1.15;
}

.ttl .brand {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.ttl .sub {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-dim);
  font-weight: 600;
  margin-top: 0.1rem;
}

/* Body / form area */
.body {
  padding: 16px 24px 22px;
  flex: 1 1 auto; /* grow to fill vertical height with header/footer */
}

/* Fields */
.field {
  margin-bottom: 14px;
}

.field .label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-dim);
  margin: 0 0 0.35rem 0.2rem;
}

.input-wrap {
  position: relative;
}

.input-wrap .ico-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: #7a8996;
  pointer-events: none;
}

.input-wrap .form-control {
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--bd);
  padding-left: 58px !important;
  padding-right: 48px !important;
  box-shadow: none;
  color: #20303a;
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

.input-wrap .form-control:focus {
  border-color: var(--bd-focus) !important;
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.25) !important;
}

/* password eye */
.eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f3f6fa;
  border: 1px solid #e2e8ee;
  cursor: pointer;
}

.eye:hover {
  background: #eef3f9;
}

/* Aux links */
.aux {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}

.aux a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.aux a:hover {
  text-decoration: underline;
}

/* Primary button */
.btn-dc {
  height: 50px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--brand-2), var(--accent));
  border: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(107, 140, 255, 0.25);
}

.btn-dc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-dc:hover::after {
  transform: translateX(120%);
}

.btn-dc:disabled {
  opacity: 0.85;
}

/* Consent + footer inside card */
.consent {
  font-size: 0.86rem;
  color: var(--ink-dim);
  margin-top: 12px;
}

.consent a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.consent a:hover {
  text-decoration: underline;
}

.foot {
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-top: 12px;
  margin-bottom: 2px;
}

/* ============= GLOBAL FOOTER (bottom row) ============= */
body.hrm-login footer,
body.hrm-login .hrm-footer {
  background: #ffffff;
  border-top: 1px solid #e0e4f0;
  color: #4b5563;
}

body.hrm-login footer a,
body.hrm-login .hrm-footer a {
  color: #0e4563;
}

/* ============= RESPONSIVE ============= */

@media (max-width: 991.98px) {
  .login-layout {
    padding: 16px 12px;
  }

  .login-inner {
    max-width: 480px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .login-left {
    display: none !important; /* hide hero on small screens */
  }

  .login-right {
    align-items: flex-start;
  }

  .card-white {
    border-radius: 18px;
  }
}

/* shorter height screens */
@media (max-height: 650px) {
  .card-white {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2),
      0 6px 12px rgba(15, 23, 42, 0.14);
  }
}

/* very small widths */
@media (max-width: 576px) {
  .hdr {
    padding: 16px 18px 6px;
  }

  .body {
    padding: 12px 18px 18px;
  }

  .ttl .brand {
    font-size: 1.55rem;
  }

  .ttl .sub {
    font-size: 0.9rem;
  }

  .input-wrap .form-control {
    height: 48px;
    font-size: 0.95rem;
  }

  .btn-dc {
    height: 48px;
  }
}

@media (max-width: 360px) {
  .ttl .brand {
    font-size: 1.4rem;
  }

  .ttl .sub {
    font-size: 0.86rem;
  }

  .input-wrap .form-control {
    height: 46px;
    font-size: 0.92rem;
  }

  .btn-dc {
    height: 46px;
  }
}
