* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.bg-page {
  background:
    radial-gradient(circle at top left, rgba(255, 214, 0, 0.25), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 56, 168, 0.18), transparent 28%),
    radial-gradient(circle at bottom, rgba(206, 17, 38, 0.16), transparent 30%),
    linear-gradient(135deg, #f3f1ff 0%, #eef8f1 100%);
  position: relative;
  overflow: hidden;
}

.bg-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 34, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 34, 184, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.5;
  pointer-events: none;
}

.login-card {
  position: relative;
  background-color: rgba(248, 248, 248, 0.96);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  box-shadow: 0 18px 45px rgba(47, 20, 88, 0.12);
  border: 1px solid rgba(91, 34, 184, 0.12);
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 8px;
  background: linear-gradient(90deg, #ffd600 0%, #ffd600 33%, #0038a8 33%, #0038a8 66%, #ce1126 66%, #ce1126 100%);
}

.login-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(91, 34, 184, 0.08);
  border-radius: 9999px;
}

.football-badge {
  width: fit-content;
  margin: 0 auto 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  background-color: #ffffff;
  color: #2f1458;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 6px 16px rgba(91, 34, 184, 0.08);
}

.football-badge i {
  color: #2f1458;
}

.user-icon {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #5b22b8, #2f1458);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(91, 34, 184, 0.25);
}

.login-title {
  text-align: center;
  font-size: 2.1rem;
  line-height: 1.1;
  color: #2f1458;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.login-subtitle {
  text-align: center;
  color: #5f5274;
  font-size: 0.95rem;
  margin: 0 0 1.8rem;
}

.login-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1f1235;
  font-size: 0.95rem;
  font-weight: 700;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #8e8e8e;
  font-size: 0.95rem;
}

.login-input {
  width: 100%;
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background-color: #ffffff;
  padding-left: 2.7rem;
  padding-right: 1rem;
  font-size: 0.95rem;
  color: #333333;
  outline: none;
  transition: all 0.2s ease;
}

.login-input::placeholder {
  color: #9ca3af;
}

.login-input:focus {
  border-color: #5b22b8;
  box-shadow: 0 0 0 3px rgba(91, 34, 184, 0.15);
}

/* Campo de contraseña del login: reserva espacio a la derecha para el
   botón mostrar/ocultar (mismo componente .password-visibility-toggle
   ya usado en activar_usuario.html/activation-card), sin afectar el
   resto de inputs (email, etc.) que no tienen ese botón. */
.input-wrapper-password {
  width: 100%;
}
.input-wrapper-password .login-input {
  padding-right: 3rem;
}

.remember-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #33214f;
  font-size: 0.95rem;
  cursor: pointer;
}

.login-link {
  color: #5b22b8;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

.login-button {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b22b8, #2f1458);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(91, 34, 184, 0.25);
}

.register-text {
  margin: 0.5rem 0 0;
  text-align: center;
  color: #2f2248;
  font-size: 0.95rem;
}

/* Tablet */
@media (min-width: 640px) {
  .login-card {
    padding: 2.3rem 2rem;
  }

  .login-title {
    font-size: 2.5rem;
  }

  .login-input {
    height: 50px;
  }

  .login-button {
    height: 52px;
  }
}

/* PC */
@media (min-width: 1024px) {
  .login-card {
    padding: 2.5rem 2.25rem;
  }

  .login-title {
    font-size: 2.7rem;
  }
}


@keyframes modalAppear {

  from {
    opacity: 0;
    transform: translateY(15px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}

.login-button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.activation-card .login-input {
  padding-right: 3rem;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: .875rem;
  width: 34px;
  height: 34px;
  border: 0;
  margin: 0;
  padding: 0;
  border-radius: 9px;
  background: transparent;
  color: #6b7280;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  background: #f3f1ff;
  color: #5b22b8;
  outline: none;
}

.password-security {
  margin-top: .55rem;
  padding: .65rem .75rem;
  border: 1px solid #e5e1ee;
  border-radius: 11px;
  background: rgba(255, 255, 255, .68);
}

.password-security-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: #33214f;
  font-size: .76rem;
}

.password-security-heading strong {
  font-weight: 700;
}

.password-security-heading span {
  color: #6b7280;
  font-weight: 600;
}

.password-strength-track {
  height: 5px;
  margin: .45rem 0 .5rem;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.password-strength-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #9ca3af;
  transition: width .2s ease, background-color .2s ease;
}

.password-strength-track span.is-medium {
  background: #d97706;
}

.password-strength-track span.is-ready {
  background: #16a34a;
}

.password-requirements {
  display: grid;
  gap: .28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.password-requirements li,
.password-match-help {
  display: flex;
  align-items: flex-start;
  gap: .42rem;
  margin: 0;
  color: #6b7280;
  font-size: .73rem;
  line-height: 1.3;
}

.password-requirements li i,
.password-match-help i {
  width: 13px;
  margin-top: .08rem;
  flex: 0 0 13px;
  text-align: center;
}

.password-requirements li.is-complete,
.password-match-help.is-complete {
  color: #15803d;
}

.password-match-help.is-mismatch {
  color: #b91c1c;
}

.password-requirements .server-check {
  color: #71667f;
}

.password-match-help {
  margin-top: .45rem;
}

@media (max-height: 720px) {
  .activation-card {
    padding-top: 1.6rem;
    padding-bottom: 1.4rem;
  }

  .activation-card .login-title {
    margin-top: .65rem;
    font-size: 1.85rem;
  }

  .activation-card .login-subtitle {
    margin-bottom: 1rem;
  }
}
