.login-main {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.login-shell {
  width: 100%;
  max-width: 600px;
}

.login-brand-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
}

.login-brand-logo {
  display: block;
  width: auto;
  height: 28px;
  max-width: min(180px, 70vw);
  object-fit: contain;
}

.login-card {
  width: 780px;
  max-width: 100%;
  background: rgba(255, 255, 255, .94);
  border-radius: 20px;
  padding: 48px 40px 36px;
  border: 1px solid rgba(123, 134, 204, .2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 8px 30px rgba(79, 84, 122, 0.12),
    0 18px 54px rgba(77, 82, 119, 0.16);
}

.login-card .hero-eyebrow {
  display: table;
  margin: 0 auto 20px;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -.4px;
}

.input-group {
  position: relative;
  width: 100%;
  border-bottom: 2px solid #d5d8ea;
  margin-bottom: 32px;
}

.input-group input {
  font-family: inherit;
  font-size: 15px;
  color: #555;
  display: block;
  width: 100%;
  height: 48px;
  background: transparent;
  padding: 0 5px;
  border: none;
  outline: none;
}

.input-group .label {
  position: absolute;
  top: 14px;
  left: 5px;
  font-size: 15px;
  color: #999;
  pointer-events: none;
  transition: all 0.3s;
}

.input-group .bar {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-dk), var(--primary));
  transition: width 0.4s;
}

.input-group input:focus ~ .bar,
.input-group input.has-val ~ .bar {
  width: 100%;
}

.input-group input:focus ~ .label,
.input-group input.has-val ~ .label {
  top: -15px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.password-modal-help {
  margin-bottom: 16px;
}

.password-rule-list {
  margin: 0;
  padding-left: 0;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.7;
}

.btn-wrap {
  width: 100%;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 25px;
}

.btn-bg {
  position: absolute;
  z-index: 0;
  width: 300%;
  height: 100%;
  background: linear-gradient(105deg, #546090, #a6b2ff, #546090, #a6b2ff);
  top: 0;
  left: -100%;
  transition: left 0.4s;
}

.btn-wrap:hover .btn-bg {
  left: 0;
}

.btn-login {
  position: relative;
  z-index: 1;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  width: 100%;
  height: 52px;
  border: none;
  background: linear-gradient(135deg,#5262a3 0%, #98a6ff 100%);
  cursor: pointer;
  letter-spacing: 0.2px;
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .2) inset,
    0 6px 20px rgba(80, 85, 122, 0.32),
    0 2px 6px rgba(0, 0, 0, .1);
}

.btn-wrap:hover .btn-login {
  background: transparent;
}

.login-links {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #7f869e;
  letter-spacing: -.1px;
}

.login-links-divider {
  margin: 0 8px;
  color: #b0b5c8;
}

.login-link-button {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.login-link-button:visited {
  color: inherit;
}

.login-link-button:hover {
  color: var(--primary);
  text-decoration: none;
}

.login-link-button:focus-visible {
  outline: none;
  text-decoration: underline;
}

.error-msg {
  background: #fff0f0;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #c80000;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 24px;
  text-align: center;
}

.success-msg {
  background: #f0fff4;
  border: 1px solid #86efac;
  border-radius: 8px;
  color: #166534;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 24px;
  text-align: center;
}

@media (max-width: 540px) {
  .login-card {
    padding: 40px 22px 30px;
    border-radius: 16px;
  }

  .login-brand-logo {
    height: 24px;
  }

  .login-title {
    font-size: 21px;
  }
}
