.login-main {
  justify-content: center;
  padding: 60px 20px;
}

.login-page-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ── CARD ─────────────────────────────────────────── */

.login-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(26, 26, 46, 0.1);
  width: 100%;
  max-width: 460px;
  padding: 48px 44px 40px;
  position: relative;
}

/* Rainbow gradient top bar — matches your consortium HR */
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg,
      #E01A4F 0%,
      #F9C22E 22.12%,
      #A6BB7D 41.83%,
      #F15946 65.38%,
      #AE90C3 84.13%,
      #F6B0BD 100%);
}

/* ── LOGO ─────────────────────────────────────────── */

.login-logo {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo img {
  height: 50px;
  width: auto;
}

/* ── HEADING ──────────────────────────────────────── */

.login-heading {
  text-align: center;
  margin-bottom: 28px;
}

.login-heading p {
  font-size: 15px;
  font-weight: 400;
  color: #888899;
  margin: 0;
}

/* ── DRUPAL MESSAGES ──────────────────────────────── */

.login-messages .messages,
.login-messages .messages--error {
  background: #FDEAEA;
  border-left: 4px solid #E01A4F;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #b5133b;
  margin-bottom: 20px;
  list-style: none;
}

.login-messages .messages--status {
  background: #eaf7f0;
  border-left-color: #2B7D91;
  color: #1a5c6a;
}

/* ── FORM FIELDS ──────────────────────────────────── */

.login-form-wrap .js-form-item {
  margin-bottom: 18px;
}

.login-form-wrap label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #444466;
  margin-bottom: 7px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* hide Drupal's required asterisk — fields are obvious */
.login-form-wrap label.form-required::after {
  content: '';
}

.login-form-wrap input[type="text"],
.login-form-wrap input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 2px solid #e4e6f0;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  background: #f8f9fc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
}

.login-form-wrap input[type="text"]:focus,
.login-form-wrap input[type="password"]:focus {
  border-color: #E01A4F;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(224, 26, 79, 0.08);
}

/* ── SUBMIT BUTTON ────────────────────────────────── */

.login-form-wrap .form-actions {
  margin: 4px 0 0;
}

.login-form-wrap input[type="submit"],
.login-form-wrap .button.js-form-submit {
  width: 100%;
  height: 52px;
  background: #E01A4F;
  color: #ffffff;
  border: 2px solid #E01A4F;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  appearance: none;
}

.login-form-wrap input[type="submit"]:hover,
.login-form-wrap .button.js-form-submit:hover {
  background: #b5133b;
  border-color: #b5133b;
  box-shadow: 0 8px 20px rgba(224, 26, 79, 0.3);
  transform: translateY(-2px);
}

.login-form-wrap input[type="submit"]:active {
  transform: scale(0.99) translateY(0);
}

/* ── FORGOT PASSWORD ──────────────────────────────── */

.login-meta-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  margin-bottom: 4px;
}

.login-forgot {
  font-size: 13px;
  font-weight: 700;
  color: #2B7D91;
  text-decoration: none;
  transition: color 0.2s;
}

.login-forgot:hover {
  color: #E01A4F;
}

/* ── DIVIDER ──────────────────────────────────────── */

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 18px;
  font-size: 13px;
  font-weight: 700;
  color: #b0b3c6;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4e6f0;
}

/* ── REGISTER LINK ────────────────────────────────── */

.login-register {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #888899;
  margin: 0;
}

.login-register a {
  color: #E01A4F;
  font-weight: 800;
  text-decoration: none;
}

.login-register a:hover {
  color: #b5133b;
  text-decoration: underline;
}

/* ── RESPONSIVE ───────────────────────────────────── */

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

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