* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --verde: #0f664f;
  --verde-oscuro: #063d36;
  --verde-profundo: #042822;
  --aqua: #20e6d1;
  --naranja: #ff7a1a;
  --blanco: #ffffff;
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

.login-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      rgba(4, 40, 34, .48),
      rgba(4, 40, 34, .48)
    ),
    url("login-bg-cartagena.jpg");

  background-size: cover;
  background-position: center;
}

/* HEADER */

.login-header {
  height: 74px;
  background: var(--verde-oscuro);

  display: flex;
  align-items: center;

  padding: 0 10%;
}

.login-header img {
  width: 150px;
  object-fit: contain;
}

/* CENTRO */

.login-center {
  min-height: calc(100vh - 128px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 44px 20px 84px;
}

.login-panel {
  width: min(980px, 92vw);
  min-height: 390px;

  position: relative;
  overflow: hidden;

  background: rgba(255,255,255,.96);

  border-radius: 0 70px 14px 14px;

  box-shadow:
    0 24px 70px rgba(0,0,0,.32);

  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;

  padding: 84px 90px 52px;
}

.login-wave {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 115px;

  background:
    radial-gradient(
      900px 150px at 35% -45px,
      transparent 58%,
      var(--verde) 59%
    ),
    linear-gradient(135deg, var(--verde), var(--verde-oscuro));

  border-bottom-left-radius: 50% 45px;
}

.login-wave::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;

  width: 100%;
  height: 70px;

  background: white;

  border-radius: 50% 0 0 0;
  clip-path: ellipse(58% 55% at 42% 0%);
}

/* TEXTO */

.login-message {
  position: relative;
  z-index: 2;

  text-align: center;
  color: var(--verde);
}

.login-message h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 400;
}

.login-message strong {
  font-weight: 900;
  color: var(--verde);
}

/* FORM */

.login-form {
  position: relative;
  z-index: 2;
}

.campo-login {
  width: 100%;
  margin-bottom: 20px;
}

.campo-login input {
  width: 100%;
  height: 52px;

  border: none;
  outline: none;

  background: #eaf2ff;

  padding: 0 16px;

  font-size: 15px;
  color: #111827;
}

.campo-login input:focus {
  box-shadow: inset 0 -2px 0 var(--naranja);
}

.campo-password {
  position: relative;
}

.campo-password input {
  padding-right: 52px;
}

.btn-ver-password {
  position: absolute;
  right: 0;
  top: 0;

  width: 52px;
  height: 52px;

  border: none;
  background: transparent;

  cursor: pointer;
  opacity: .65;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin: 4px 0 20px;

  font-size: 12px;
  color: #6b7280;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-options a {
  color: var(--verde);
  text-decoration: none;
  font-size: 12px;
}

.btn-login {
  width: 175px;
  height: 44px;

  display: block;
  margin: auto;

  border: none;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--verde), var(--verde-oscuro));
  color: white;

  font-size: 16px;
  font-weight: 900;

  cursor: pointer;

  box-shadow: 0 7px 16px rgba(0,0,0,.28);
}

.btn-login:active {
  transform: scale(.98);
}

/* FOOTER */

.login-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  min-height: 54px;

  background: var(--verde);

  color: white;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;

  font-size: 12px;
}

.login-footer div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.login-footer strong {
  font-size: 11px;
}

.login-footer span {
  opacity: .92;
}

/* MOBILE */

@media (max-width: 760px) {

  .login-header {
    height: 68px;
    padding: 0 22px;
    justify-content: center;
  }

  .login-header img {
    width: 142px;
  }

  .login-center {
    min-height: calc(100vh - 68px);
    padding: 24px 16px 90px;
  }

  .login-panel {
    grid-template-columns: 1fr;

    width: 100%;
    min-height: auto;

    border-radius: 30px;

    padding: 92px 24px 34px;

    gap: 30px;
  }

  .login-wave {
    height: 90px;
  }

  .login-message h1 {
    font-size: 25px;
  }

  .login-options {
    gap: 12px;
  }

  .btn-login {
    width: 100%;
  }

  .login-footer {
    min-height: 64px;

    gap: 14px;
    padding: 8px 12px;

    font-size: 10px;

    justify-content: space-around;
  }

  .login-footer div {
    max-width: 33%;
  }
}


.splash-login {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #063d36;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: white;
  font-weight: 700;
  letter-spacing: .5px;
}

.splash-login img {
  width: 170px;
  max-width: 60%;
  animation: splashPulse 1.2s ease-in-out infinite;
}

@keyframes splashPulse {
  0%, 100% {
    transform: scale(1);
    opacity: .85;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.splash-login.oculto {
  display: none;
}