:root {
  --mp-burdeo: #8b000f;
  --mp-burdeo-dark: #5a0008;
  --mp-cream: #f7f3ec;
  --mp-white: #ffffff;
  --mp-ink: #1f1f1f;
  --mp-muted: #6f6a66;
  --mp-border: #e5ddd3;
  --mp-success: #214a43;
  --mp-radius: 18px;
  --mp-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body.mp-public-body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--mp-ink);
  background: var(--mp-cream);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--mp-burdeo-dark);
  text-decoration: none;
}

.mp-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header público común */
.mp-public-header {
  background: var(--mp-burdeo);
}

.mp-public-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
}

.mp-public-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mp-public-header__brand img {
  height: 34px;
  width: auto;
}

.mp-public-header__brand-main {
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.mp-public-header__brand-surface {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
}

/* Layout público */
.mp-public-main {
  padding: 40px 0 56px;
}

.mp-public-footer {
  padding: 24px 0 36px;
  color: var(--mp-muted);
  font-size: 14px;
}

/* Hero login */
.mp-login-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.mp-login-hero__content {
  padding-top: 28px;
}

.mp-login-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--mp-burdeo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mp-login-hero__title {
  margin: 0 0 16px;
  font-size: 46px;
  line-height: 1.05;
  color: var(--mp-ink);
}

.mp-login-hero__lead {
  margin: 0 0 22px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--mp-muted);
}

.mp-login-hero__benefits {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.mp-login-hero__benefits li {
  line-height: 1.45;
}

/* Tarjetas */
.mp-login-card,
.mp-login-ecosystem__box,
.mp-feature-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
}

.mp-login-card {
  padding: 28px;
}

.mp-login-card__header h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--mp-ink);
}

.mp-login-card__header p {
  margin: 0 0 22px;
  color: var(--mp-muted);
  line-height: 1.5;
}

/* Formulario */
.mp-login-form {
  margin-top: 0;
}

.mp-form-field {
  margin-bottom: 16px;
}

.mp-form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--mp-ink);
  font-weight: 700;
}

.mp-form-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  font-size: 16px;
  background: #fff;
  color: var(--mp-ink);
}

.mp-form-field input:focus {
  outline: 2px solid rgba(139, 0, 15, 0.2);
  border-color: var(--mp-burdeo);
}

.mp-login-form__error {
  margin-bottom: 14px;
  color: #9b1c1c;
  font-size: 14px;
  font-weight: 700;
}

/* Botones */
.mp-btn {
  border: 0;
  border-radius: 14px;
  min-height: 52px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.mp-btn--primary {
  background: var(--mp-burdeo);
  color: #fff;
}

.mp-btn--primary:hover {
  background: var(--mp-burdeo-dark);
}

.mp-btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.mp-btn--block {
  width: 100%;
}

.mp-login-form__links {
  margin-top: 14px;
  text-align: center;
}

/* Bloques inferiores, si la página los usa */
.mp-login-features,
.mp-login-ecosystem {
  margin-top: 48px;
}

.mp-section-header {
  margin-bottom: 22px;
}

.mp-section-header h2 {
  margin: 0 0 8px;
  font-size: 32px;
  color: var(--mp-ink);
}

.mp-section-header p {
  margin: 0;
  color: var(--mp-muted);
}

.mp-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mp-feature-card {
  padding: 22px;
}

.mp-feature-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--mp-ink);
}

.mp-feature-card p {
  margin: 0;
  color: var(--mp-muted);
  line-height: 1.55;
}

.mp-login-ecosystem__box {
  padding: 28px;
}

.mp-login-ecosystem__box h2 {
  margin: 0 0 10px;
  font-size: 30px;
  color: var(--mp-ink);
}

.mp-login-ecosystem__box p {
  margin: 0;
  color: var(--mp-muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 980px) {
  .mp-login-hero__inner {
    grid-template-columns: 1fr;
  }

  .mp-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mp-login-hero__title {
    font-size: 38px;
  }
}

@media (max-width: 640px) {
  .mp-public-main {
    padding-top: 24px;
  }

  .mp-public-header__inner {
    min-height: 68px;
  }

  .mp-login-hero__title {
    font-size: 30px;
  }

  .mp-login-hero__lead {
    font-size: 18px;
  }

  .mp-feature-grid {
    grid-template-columns: 1fr;
  }

  .mp-login-card {
    padding: 22px;
  }
}