/* Global hub login — visual language aligned with translation-services.mondragonlingua.com */
:root {
  --ml-red: #c10b25;
  --ml-red-bright: #ff324f;
  --ml-ink: hsl(46, 3%, 16%);
  --ml-ink-soft: hsl(46, 3%, 28%);
  --ml-cream: #f7f4ef;
  --ml-white: #ffffff;
  --ml-line: rgba(255, 255, 255, 0.28);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ml-ink);
  background: #111;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.mlg-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.mlg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mlg-media video,
.mlg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mlg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(17, 17, 17, 0.78) 0%, rgba(17, 17, 17, 0.55) 42%, rgba(193, 11, 37, 0.35) 100%),
    linear-gradient(to top, rgba(17, 17, 17, 0.55), transparent 45%);
}

.mlg-top,
.mlg-main,
.mlg-foot {
  position: relative;
  z-index: 1;
}

.mlg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.mlg-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mlg-brand img {
  height: 42px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.mlg-contact {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.mlg-contact:hover {
  border-bottom-color: #fff;
  opacity: 0.9;
}

.mlg-lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.mlg-lang-btn {
  appearance: none;
  border: 0;
  margin: 0;
  cursor: pointer;
  min-width: 2.55rem;
  padding: 0.38rem 0.7rem;
  border-radius: 0.55rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(180deg, #ff324f 0%, #c10b25 100%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.mlg-lang-btn {
  display: inline-block;
}

.mlg-lang-btn:hover {
  filter: brightness(1.06);
  color: #fff;
}

.mlg-lang-btn:active {
  transform: translateY(1px);
}

.mlg-lang-btn.is-active {
  box-shadow: inset 0 0 0 2px #fff, 0 1px 0 rgba(0, 0, 0, 0.08);
}

.mlg-lang-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.mlg-main {
  display: grid;
  align-items: center;
  padding: clamp(1.5rem, 5vh, 3.5rem) clamp(1.25rem, 4vw, 3rem) 2rem;
}

.mlg-composition {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 380px);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  max-width: 1120px;
  width: 100%;
}

.mlg-copy {
  color: #fff;
  max-width: 34rem;
}

.mlg-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ml-red-bright);
}

.mlg-title {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mlg-lead {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 28rem;
}

.mlg-panel {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ml-ink);
  padding: 1.6rem 1.5rem 1.45rem;
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  animation: mlg-rise 0.7s ease both;
}

@keyframes mlg-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mlg-copy {
  animation: mlg-rise 0.75s ease 0.08s both;
}

.mlg-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mlg-panel p.hint {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--ml-ink-soft);
  line-height: 1.45;
}

.mlg-panel p.hint:empty {
  display: none;
  margin: 0;
}

.mlg-field {
  margin-bottom: 0.95rem;
}

.mlg-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mlg-field input {
  width: 100%;
  border: 1px solid #d7d2cb;
  background: #fff;
  color: var(--ml-ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.78rem 0.85rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mlg-field input:focus {
  border-color: var(--ml-red);
  box-shadow: 0 0 0 3px rgba(193, 11, 37, 0.15);
}

.mlg-pass-wrap {
  position: relative;
}

.mlg-pass-wrap input {
  padding-right: 2.8rem;
}

.mlg-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--ml-ink-soft);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem;
}

.mlg-submit {
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  background: var(--ml-red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.95rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mlg-submit:hover:not(:disabled) {
  background: var(--ml-red-bright);
}

.mlg-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.mlg-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.mlg-error,
.mlg-notice {
  display: none;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.88rem;
  line-height: 1.4;
  border-radius: 2px;
}

.mlg-error {
  background: #fde8eb;
  color: #8a1020;
}

.mlg-links {
  display: flex;
  justify-content: flex-end;
  margin: 0.15rem 0 0.85rem;
}

.mlg-link {
  border: 0;
  background: transparent;
  color: var(--ml-red);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mlg-link:hover {
  color: var(--ml-red-bright);
}

.mlg-ok {
  display: none;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.88rem;
  line-height: 1.4;
  border-radius: 2px;
  background: #e8f6ec;
  color: #1f6b3a;
}

.mlg-secondary {
  width: 100%;
  margin-top: 0.55rem;
  border: 1px solid #d7d2cb;
  background: #fff;
  color: var(--ml-ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  cursor: pointer;
}

.mlg-secondary:hover {
  border-color: var(--ml-red);
  color: var(--ml-red);
}

.mlg-foot {
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  border-top: 1px solid var(--ml-line);
}

.mlg-foot a:hover {
  color: #fff;
}

.mlg-access {
  display: grid;
  gap: 0.75rem;
}

.mlg-access-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e2ddd6;
  border-radius: 2px;
  background: #fff;
  color: var(--ml-ink);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.mlg-access-link span.meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ml-ink-soft);
}

.mlg-access-link:hover {
  border-color: var(--ml-red);
  background: #fff8f9;
  transform: translateY(-1px);
}

.mlg-access-link.primary {
  background: var(--ml-red);
  border-color: var(--ml-red);
  color: #fff;
}

.mlg-access-link.primary span.meta {
  color: rgba(255, 255, 255, 0.78);
}

.mlg-access-link.primary:hover {
  background: var(--ml-red-bright);
  border-color: var(--ml-red-bright);
}

.mlg-access-link .arrow {
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.7;
}

@media (max-width: 860px) {
  .mlg-composition {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mlg-copy {
    max-width: none;
  }

  .mlg-title {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mlg-panel,
  .mlg-copy,
  .mlg-access-link {
    animation: none;
    transition: none;
  }
}
