/* HMU login — academic split layout, system navy/maroon */

body.hmu-login-page {
  background: #f4f4f4;
}

body.hmu-login-page .top-bar-area {
  display: none !important;
}

body.hmu-login-page .page-header-default {
  display: none !important;
}

body.hmu-login-page > footer {
  display: none !important;
}

.hmu-login-shell {
  margin: 16px 0 24px;
}

.hmu-login-card {
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.hmu-login-langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  padding: 12px 28px;
  background: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.hmu-login-langs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.hmu-login-langs-list li + li {
  border-inline-start: 1px solid #d0d0d0;
}

.hmu-login-langs-list a {
  display: block;
  min-width: 92px;
  padding: 8px 14px;
  color: #2B384C;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.hmu-login-langs-list a:hover,
.hmu-login-langs-list a:focus {
  background: #f6eeee;
  color: #741f22;
  text-decoration: none;
}

.hmu-login-langs-list a.is-active {
  background: #741f22;
  color: #fff;
}

.hmu-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - 180px);
  background: #fff;
}

.hmu-login-brand,
.hmu-login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hmu-login-brand {
  position: relative;
  min-width: 0;
  padding: 48px 40px;
  overflow: hidden;
  color: #fff;
  background-color: #2B384C;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  text-align: start;
}

.hmu-login-brand::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #741f22;
}

.hmu-login-brand::after {
  content: "";
  position: absolute;
  inset-inline-end: -48px;
  bottom: -48px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(116, 31, 34, 0.45);
  border-radius: 4px;
  transform: rotate(18deg);
  pointer-events: none;
}

.hmu-login-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.hmu-login-logo-frame {
  display: inline-block;
  margin: 0 0 24px;
  padding: 8px 10px;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  line-height: 0;
}

.hmu-login-logo-frame img {
  display: block;
  width: auto;
  height: 128px;
  max-width: 260px;
  margin: 0;
  object-fit: contain;
  object-position: left center;
  background: #fff;
}

.hmu-login[dir="rtl"] .hmu-login-logo-frame img {
  object-position: right center;
}

.hmu-login-kicker {
  margin: 0 0 10px;
  color: #d7b4b5;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hmu-login[dir="rtl"] .hmu-login-kicker {
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.15em;
}

.hmu-login-university {
  margin: 0 0 12px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  line-height: 1.25;
}

.hmu-login[dir="ltr"] .hmu-login-university {
  font-size: 1.7em;
}

.hmu-login[dir="rtl"] .hmu-login-university {
  font-size: 1.85em;
}

.hmu-login-rule {
  display: block;
  width: 48px;
  height: 3px;
  margin: 0 0 16px;
  background: #741f22;
}

.hmu-login-tagline {
  margin: 0;
  max-width: 28em;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.5;
}

.hmu-login[dir="rtl"] .hmu-login-tagline {
  font-size: 1.25em;
}

.hmu-login-panel {
  min-width: 0;
  padding: 48px 40px;
  background: #f9f9f9;
}

.hmu-login-form-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: start;
}

.hmu-login-title {
  margin: 0 0 6px;
  color: #2B384C;
  font-weight: bold;
  line-height: 1.25;
}

.hmu-login[dir="ltr"] .hmu-login-title {
  font-size: 1.55em;
}

.hmu-login[dir="rtl"] .hmu-login-title {
  font-size: 1.7em;
}

.hmu-login-lead {
  margin: 0 0 24px;
  color: #777;
  font-size: 15px;
  line-height: 1.45;
}

.hmu-login[dir="rtl"] .hmu-login-lead {
  font-size: 1.25em;
}

.hmu-login-alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.hmu-login-alert.is-error {
  background: #f8ecec;
  color: #741f22;
  border: 1px solid #e4c7c8;
}

.hmu-login-alert.is-info {
  background: #eef3f1;
  color: #2B384C;
  border: 1px solid #d5ddd9;
}

.hmu-login-field {
  margin-bottom: 16px;
}

.hmu-login-field label {
  display: block;
  margin-bottom: 6px;
  color: #2B384C;
  font-size: 15px;
  font-weight: bold;
}

.hmu-login[dir="rtl"] .hmu-login-field label {
  font-size: 1.2em;
}

.hmu-login-control {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hmu-login-control:focus-within {
  border-color: #741f22;
  box-shadow: 0 0 0 2px rgba(116, 31, 34, 0.12);
}

.hmu-login-icon {
  flex: 0 0 auto;
  width: 40px;
  color: #741f22;
  text-align: center;
}

.hmu-login-control input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 8px 10px 8px 0;
  border: 0;
  background: transparent;
  color: #2B384C;
  font-size: 15px;
  box-shadow: none;
  outline: none;
}

.hmu-login[dir="rtl"] .hmu-login-control input {
  padding: 8px 0 8px 10px;
  font-size: 1.2em;
}

.hmu-login-toggle {
  flex: 0 0 auto;
  width: 42px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777;
  cursor: pointer;
}

.hmu-login-toggle:hover,
.hmu-login-toggle:focus {
  color: #741f22;
  outline: none;
}

.hmu-login-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 8px;
}

.hmu-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 148px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid #5c181a;
  border-radius: 4px;
  background: #741f22;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}

.hmu-login[dir="rtl"] .hmu-login-submit {
  font-size: 1.2em;
}

.hmu-login-submit:hover,
.hmu-login-submit:focus {
  background: #5c181a;
  color: #fff;
  text-decoration: none;
}

.hmu-login-submit.is-loading,
.hmu-login-submit:disabled {
  opacity: 0.78;
  cursor: wait;
}

.hmu-login-submit .hmu-login-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hmu-login-spin 0.7s linear infinite;
}

.hmu-login-submit.is-loading .hmu-login-spinner {
  display: inline-block;
}

@keyframes hmu-login-spin {
  to { transform: rotate(360deg); }
}

.hmu-login-forgot {
  color: #2B384C;
  font-size: 14px;
  text-decoration: none;
}

.hmu-login[dir="rtl"] .hmu-login-forgot {
  font-size: 1.15em;
}

.hmu-login-forgot:hover,
.hmu-login-forgot:focus {
  color: #741f22;
  text-decoration: underline;
}

.hmu-login-services {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e0e0e0;
}

.hmu-login-services-title {
  margin: 0 0 10px;
  color: #777;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.6px;
}

.hmu-login[dir="rtl"] .hmu-login-services-title {
  letter-spacing: 0;
  font-size: 1.05em;
}

.hmu-login-services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hmu-login-services-list a,
.hmu-login-services-list span {
  color: #2B384C;
  font-size: 14px;
  text-decoration: none;
}

.hmu-login-services-list a:hover,
.hmu-login-services-list a:focus {
  color: #741f22;
  text-decoration: underline;
}

.hmu-login-services-list .is-disabled {
  color: #999;
  cursor: not-allowed;
}

@media (max-width: 1199px) {
  .hmu-login-brand,
  .hmu-login-panel {
    padding: 36px 28px;
  }
}

@media (max-width: 991px) {
  .hmu-login-langs {
    justify-content: center;
    padding: 10px 16px;
  }
  .hmu-login {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hmu-login-brand,
  .hmu-login-panel {
    width: 100%;
  }

  .hmu-login-brand {
    padding: 28px 22px 24px;
    min-height: 0;
  }

  .hmu-login-logo-frame {
    margin-bottom: 14px;
  }

  .hmu-login-logo-frame img {
    height: 110px;
    max-width: 240px;
  }

  .hmu-login-university {
    font-size: 22px;
  }

  .hmu-login-panel {
    padding: 28px 20px 36px;
  }
}

.hmu-login-footer {
  padding: 16px 28px 18px;
  background: #2B384C;
  border-top: 3px solid #741f22;
  color: #c8cdd4;
  text-align: center;
}

.hmu-login-footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.4px;
}

.hmu-login-footer p + p {
  margin-top: 4px;
}

.hmu-login-footer-mark {
  color: #fff;
  font-weight: bold;
}

.hmu-login-shell[dir="rtl"] .hmu-login-footer p {
  font-size: 1.1em;
  letter-spacing: 0;
}

@media (max-width: 991px) {
  .hmu-login-footer {
    padding: 14px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hmu-login-submit .hmu-login-spinner {
    animation: none;
  }
}
