:root {
  --navy: #06183d;
  --blue: #3269ff;
  --cyan: #00d4ed;
  --text: #101d3c;
  --muted: #63749a;
  --border: #dce3f0;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background-color: #fff;
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 3.02fr) minmax(420px, 1fr);
  min-height: 100vh;
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background: url("../img/hrbg.png");
  background-repeat: no-repeat;
}

.login-hero img {
  width: 17rem;
  margin-left: 2.2rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding-top: 55px;
  padding-bottom: 190px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}

.brand img {
  width: 92px;
  max-height: 65px;
  object-fit: contain;
}

.brand-name {
  font-size: 34px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -1px;
}

.brand-subtitle {
  margin-top: 7px;
  font-size: 13px;
  letter-spacing: 5px;
  font-weight: 500;
}

.eyebrow {
  margin: 58px 0 20px;
  color: #b4bfd9;
  font-size: 13px;
  letter-spacing: 6px;
  font-weight: 600;
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, 4.25vw, 68px);
  line-height: 1.04;
  letter-spacing: -2.7px;
  font-weight: 750;
}

.hero-title .gradient-text {
  display: block;
  background: linear-gradient(90deg, #4773ff, #00d8e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* RIGHT SIDE */
.login-panel {
  display: grid;
  justify-content: center;
  min-width: 0;
  min-height: 100vh;
  background: #162c57;
}

.login-inner {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.panel-eyebrow {
  margin-bottom: 24px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 5px;
  font-weight: 700;
}

.login-heading {
  margin: 0 0 9px;
  color: #fff;
  font-size: clamp(34px, 3vw, 47px);
  line-height: 1.15;
  letter-spacing: -1.8px;
  font-weight: 750;
}

.login-subheading {
  margin-bottom: 42px;
  color: #fff;
  font-size: 19px;
  line-height: 1.5;
}

.login-form .form-group {
  margin-bottom: 21px;
}

.login-form label {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 2;
  transform: translateY(-50%);
  color: #68738c;
  font-size: 20px;
  pointer-events: none;
}

.login-form .form-control {
  width: 100%;
  height: 55px;
  padding: 12px 45px 12px 56px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(15, 35, 75, 0.03);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.login-form .form-control:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(60, 104, 205, 0.1);
  outline: none;
}

.login-form .form-control::placeholder {
  color: #858b9a;
  opacity: 1;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  padding: 5px;
  border: 0;
  background: transparent;
  color: #68738c;
  cursor: pointer;
  font-size: 18px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 30px;
}

.remember-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.forgot-link {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 60px;
  border: 1px solid var(--navy);
  border-radius: 11px;
  background: #fdd03c;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.login-bottom {
  margin-top: 65px;
  text-align: center;
  color: #6377a6;
  font-size: 12px;
}

.secure-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.bottom-links a {
  color: #6377a6;
  text-decoration: none;
}

.bottom-links a:hover {
  text-decoration: underline;
}

/* TABLET */
@media (max-width: 1100px) and (min-width: 768px) {
  .login-page {
    grid-template-columns: minmax(0, 1.15fr) minmax(400px, 1fr);
  }

  .login-hero {
    padding-right: 30px;
    padding-left: 35px;
  }

  .hero-title {
    font-size: 48px;
  }

  .login-panel {
    padding-right: 35px;
    padding-left: 35px;
  }

  .brand-name {
    font-size: 28px;
  }
}

.mobile-hero-content,
.mobile-city-footer,
.mobile-only {
  display: none !important;
}

@media only screen and (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }

  html,
  body {
    height: 100%;
    overflow: hidden;
    background: #fff !important;
  }

  .login-page {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #fff url("../img/hrbg_mobile.png") center top / 100% auto
      no-repeat;
  }

  .login-hero {
    position: relative;
    display: block !important;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow: visible;
    isolation: auto;
    background: transparent;
  }

  .login-hero img.hero-logo {
    position: absolute;
    top: -12px;
    left: 0.5vw;
    display: block;
    width: clamp(205px, 33vw, 230px);
    max-width: none;
    height: auto;
    margin: 0;
    object-fit: contain;
  }

  .login-panel {
    position: relative;
    z-index: 5;
    display: block !important;
    flex: none;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0 4.7vw max(3vw, env(safe-area-inset-bottom, 0px));
    padding: 0 !important;
    border-radius: clamp(20px, 3.8vw, 32px);
    background: #fff !important;
    box-shadow: 0 1vw 6vw rgba(6, 24, 61, 0.18);
  }

  .login-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(18px, 3.8vw, 30px) 6.9vw clamp(18px, 4.3vw, 32px);
    border-radius: inherit;
    background: #162c57;
    color: #fff;
  }

  .panel-eyebrow {
    margin: 0 0 1.4vw;
    color: #fff;
    font-size: clamp(10px, 1.75vw, 13px);
    font-weight: 600;
    letter-spacing: 0.35em;
  }

  .login-heading {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 6.4vw, 46px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  .login-subheading {
    margin: 0 0 clamp(12px, 2.7vw, 22px);
    color: #fff;
    font-size: clamp(13px, 2.7vw, 20px);
    line-height: 2.4;
  }

  .login-form .form-group {
    margin-bottom: clamp(12px, 2.1vw, 18px);
  }

  .login-form label {
    margin-bottom: clamp(6px, 1.6vw, 12px);
    color: #fff;
    font-size: clamp(13px, 2.5vw, 18px);
    font-weight: 500;
  }

  .login-form .form-control {
    height: clamp(46px, 8vw, 60px);
    padding: 10px clamp(40px, 7vw, 56px) 10px clamp(46px, 9.6vw, 64px);
    border: 1px solid #d5deed;
    border-radius: clamp(10px, 1.5vw, 14px);
    background: #fff;
    color: #101d3c;
    font-size: 16px;
  }

  .login-form .form-control:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(60, 104, 205, 0.1);
  }

  .input-icon {
    left: clamp(14px, 4.5vw, 32px);
    color: #53617c;
  }

  .password-toggle {
    right: clamp(8px, 3.8vw, 28px);
  }

  .login-options {
    justify-content: flex-end;
    margin: clamp(10px, 2.1vw, 16px) 0 clamp(14px, 3vw, 22px);
  }

  .forgot-link {
    color: #fff;
    font-size: clamp(13px, 2.4vw, 17px);
    text-decoration: underline;
  }

  .btn-login {
    min-height: clamp(48px, 8.5vw, 64px);
    border: 1px solid #fdd03c;
    border-radius: clamp(10px, 1.5vw, 14px);
    background: #fdd03c;
    color: #000;
    font-size: clamp(16px, 2.9vw, 20px);
    font-weight: 500;
  }

  .mobile-only {
    display: block !important;
  }

  .login-bottom {
    margin-top: clamp(16px, 4.5vw, 30px);
    color: #6377a6;
    font-size: clamp(10.5px, 1.9vw, 13px);
    text-align: left;
  }

  .login-bottom .secure-label {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 3vw;
    margin: 0;
  }

  .secure-text {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #111e3e;
    line-height: 1.3;
  }

  .secure-text svg {
    flex: none;
  }

  .bottom-links {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
  }

  .bottom-links a {
    color: #fff;
  }
}

@media only screen and (max-width: 767px) and (max-height: 720px) {
  .login-inner {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .login-heading {
    font-size: 24px;
  }

  .login-subheading {
    margin-bottom: 10px;
  }

  .login-form .form-group {
    margin-bottom: 10px;
  }

  .login-form .form-control {
    height: 44px;
  }

  .login-options {
    margin: 8px 0 12px;
  }

  .btn-login {
    min-height: 46px;
  }

  .login-bottom {
    margin-top: 12px;
  }
}

@media only screen and (max-width: 767px) and (max-height: 520px) {
  html,
  body {
    overflow: auto;
  }

  .login-page {
    height: auto;
    min-height: 100vh;
  }

  .login-hero {
    min-height: 110vw;
  }
}
