:root {
  --ink: #071421;
  --muted: #5e6d7a;
  --line: #dce5ec;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --mexico: #087a45;
  --usa: #174a8b;
  --canada: #d3262f;
  --gold: #d8a427;
  --field: #071f3f;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.09) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgb(255 255 255 / 0.08) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(115deg, var(--mexico) 0 25%, transparent 25% 100%),
    linear-gradient(135deg, #071f3f 0%, #174a8b 55%, #d3262f 118%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.container {
  position: fixed;
  inset: 0;
}

.container::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--mexico) 0 33.333%, #fff 33.333% 40%, var(--usa) 40% 66.666%, #fff 66.666% 73%, var(--canada) 73% 100%);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: auto;
  background: transparent;
}

.modal-container {
  position: relative;
  width: min(420px, calc(100vw - 36px));
  border: 1px solid rgb(255 255 255 / 0.78);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%);
  box-shadow: 0 24px 70px rgb(7 31 63 / 0.28);
}

.login-auth .modal-container {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(420px, 1fr);
  width: min(940px, calc(100vw - 40px));
  min-height: 560px;
  max-height: calc(100vh - 40px);
}

.modal-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 34px;
}

.login-auth .modal-left {
  padding: clamp(28px, 4vw, 42px);
}

.modal-title {
  margin: 0;
  color: var(--field);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 1000;
  line-height: 0.98;
  letter-spacing: 0;
}

.login-auth .modal-title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.95;
}

.recovery-auth .modal-title {
  font-size: clamp(30px, 4vw, 44px);
}

.recovery-auth .modal-desc {
  margin: 10px 0 18px;
}

.recovery-auth .modal-left {
  justify-content: center;
}

.recovery-auth .input-block {
  margin-bottom: 10px;
}

.recovery-auth .modal-buttons {
  margin-top: 10px;
}

.recovery-auth .modal-container {
  min-height: 0;
  max-height: none;
}

.recovery-auth .modal-left {
  padding-top: 30px;
  padding-bottom: 30px;
}

.recovery-auth .modal-right {
  min-height: 0;
  height: auto;
}

.recovery-auth .modal-right::before {
  top: 22px;
}

.recovery-auth .modal-right::after {
  top: 52px;
  font-size: clamp(48px, 5vw, 60px);
}

.recovery-auth .login-side-copy {
  padding: 150px 24px 18px;
}

.recovery-auth .login-side-copy span {
  min-height: 52px;
}

.modal-title::after {
  content: "MUNDIAL 2026";
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.modal-desc {
  color: var(--muted);
  font-weight: 800;
}

.input-block {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.login-auth .input-block {
  margin: 0 0 12px;
}

.input-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
}

.input-block input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface-soft);
  font-weight: 800;
  outline: none;
}

.input-block input:focus {
  border-color: var(--usa);
  box-shadow: 0 0 0 4px rgb(23 74 139 / 0.12);
  background: #fff;
}

.modal-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
}

.modal-buttons a,
.modal-left h2 a {
  color: var(--usa);
  font-weight: 1000;
  text-decoration: none;
}

.modal-left h2 {
  margin: 40px 0 0;
  color: var(--field);
  font-size: 20px;
  font-weight: 1000;
}

.input-button {
  min-height: 46px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--field);
  font-weight: 1000;
  box-shadow: 0 14px 28px rgb(7 31 63 / 0.2);
  cursor: pointer;
}

.input-button:hover {
  background: #0b2a52;
}

.modal-right {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.09) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgb(255 255 255 / 0.08) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(115deg, var(--mexico) 0 25%, transparent 25% 100%),
    linear-gradient(135deg, #071f3f 0%, #174a8b 55%, #d3262f 118%);
}

.modal-right::before {
  content: "Fixture interactivo";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  z-index: 2;
  color: #f6d06b;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-right::after {
  content: "MUNDIAL\A 2026";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 54px;
  z-index: 2;
  color: #fff;
  font-size: clamp(56px, 6vw, 64px);
  font-weight: 1000;
  line-height: 0.95;
  overflow-wrap: break-word;
  white-space: pre-line;
}

.modal-right img {
  display: none;
}

.login-auth .login-side-copy img {
  position: absolute;
  left: 50%;
  bottom: 116px;
  z-index: 1;
  display: block;
  width: min(300px, 58%);
  height: auto;
  max-height: 245px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 28px rgb(0 0 0 / 0.24));
  pointer-events: none;
}

.login-side-copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 24px;
  padding-top: 170px;
}

.login-side-copy span {
  min-height: 58px;
  display: grid;
  align-content: center;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 8px;
  padding: 10px;
  color: rgb(255 255 255 / 0.78);
  background: rgb(255 255 255 / 0.1);
  font-size: 12px;
  font-weight: 800;
}

.login-side-copy strong {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 1000;
  line-height: 1;
}

.forgot-auth .modal-buttons {
  justify-content: flex-start;
}

.forgot-auth .modal-title,
.forgot-auth .modal-desc {
  font-size: 0;
}

.forgot-auth .modal-title::before {
  content: "Recuperar contraseña";
  display: block;
  color: var(--field);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 1000;
  line-height: 0.95;
}

.forgot-auth .modal-desc::before {
  content: "Mundial 2026 - RICHET";
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.recovery-auth .modal-container {
  min-height: 0;
  max-height: none;
}

.recovery-auth .modal-right {
  min-height: 0;
  height: auto;
}

.recovery-auth .modal-right::before {
  top: 22px;
}

.recovery-auth .modal-right::after {
  top: 52px;
  font-size: clamp(48px, 5vw, 60px);
}

.recovery-auth .login-side-copy {
  padding: 150px 24px 18px;
}

.recovery-auth .login-side-copy span {
  min-height: 52px;
}

.close-button,
.modal-button {
  display: none;
}

.swal2-confirm {
  border-radius: 8px !important;
  background: var(--field) !important;
}

@media (max-width: 760px) {
  .modal {
    align-items: flex-start;
    padding: 14px;
  }

  .login-auth .modal-container {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: none;
    width: min(100%, 560px);
  }

  .login-auth .modal-left {
    padding: 28px 22px;
  }

  .modal-right {
    min-height: 360px;
  }

  .modal-right::before {
    left: 20px;
    right: 20px;
    top: 22px;
  }

  .modal-right::after {
    left: 20px;
    right: 20px;
    top: 52px;
    font-size: clamp(44px, 13vw, 58px);
  }

  .login-side-copy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 150px 16px 18px;
  }

  .login-side-copy span {
    min-height: 56px;
    padding: 8px;
  }

  .recovery-auth .modal-title {
    font-size: 32px;
  }
}

@media (max-width: 420px) {
  .login-auth .modal-title {
    font-size: 34px;
  }

  .modal-left h2 {
    font-size: 18px;
  }

  .modal-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .input-button {
    width: 100%;
  }

  .modal-right {
    min-height: 340px;
  }

  .modal-right::after {
    font-size: 42px;
  }

  .login-side-copy {
    padding-top: 150px;
  }

  .login-side-copy strong {
    font-size: 22px;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .modal {
    align-items: flex-start;
  }

  .login-auth .modal-container {
    min-height: 0;
    max-height: none;
  }

  .modal-right {
    min-height: 500px;
  }

  .recovery-auth .modal-right {
    min-height: 0;
  }

  .recovery-auth .modal-container {
    min-height: 0;
  }

  .recovery-auth .modal-left {
    padding: 24px 34px;
  }

  .recovery-auth .modal-title {
    font-size: 40px;
  }

  .recovery-auth .modal-desc {
    margin: 8px 0 14px;
  }

  .recovery-auth .input-block {
    gap: 4px;
    margin-bottom: 8px;
  }

  .recovery-auth .input-block input {
    min-height: 40px;
    padding: 8px 12px;
  }

  .recovery-auth .modal-right::after {
    font-size: 56px;
  }

  .recovery-auth .login-side-copy {
    padding: 130px 18px 16px;
  }
}

@media (max-height: 620px) and (min-width: 761px) {
  .recovery-auth .modal-left {
    padding: 20px 30px;
  }

  .recovery-auth .modal-title {
    font-size: 34px;
  }

  .recovery-auth .modal-title::after {
    margin-top: 6px;
  }

  .recovery-auth .modal-desc {
    margin: 6px 0 10px;
  }

  .recovery-auth .input-label {
    font-size: 12px;
  }

  .recovery-auth .input-block input {
    min-height: 36px;
  }

  .recovery-auth .modal-right::before {
    top: 20px;
  }

  .recovery-auth .modal-right::after {
    top: 48px;
    font-size: 50px;
  }

  .recovery-auth .login-side-copy span {
    min-height: 48px;
  }
}
