:root {
  --ink: #ffffff;
  --muted: #b9d7ff;
  --cyan: #48dcff;
  --pink: #ef23a0;
  --orange: #ffb827;
  --blue: #0d4da0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

body {
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  background:
    radial-gradient(circle at 3% 4%, rgba(255, 184, 31, 0.95) 0 7%, transparent 18%),
    radial-gradient(circle at 98% 3%, rgba(235, 45, 170, 0.9) 0 9%, transparent 20%),
    radial-gradient(circle at 98% 88%, rgba(255, 139, 36, 0.86) 0 10%, transparent 27%),
    linear-gradient(138deg, #082964 0%, #031941 36%, #093780 68%, #112776 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(150deg, transparent 0 18%, rgba(18, 89, 179, 0.38) 18% 39%, transparent 39%),
    linear-gradient(28deg, transparent 0 58%, rgba(255, 75, 126, 0.34) 58% 72%, transparent 72%),
    linear-gradient(318deg, transparent 0 48%, rgba(16, 111, 224, 0.24) 48% 64%, transparent 64%),
    radial-gradient(circle at 72% 48%, rgba(52, 158, 255, 0.3), transparent 24%);
}

body::after {
  background:
    radial-gradient(circle at 4% 39%, rgba(255, 56, 151, 0.75) 0 0.62rem, transparent 0.66rem),
    radial-gradient(circle at 8% 34%, rgba(255, 98, 34, 0.85) 0 0.68rem, transparent 0.72rem),
    radial-gradient(circle at 3% 32%, rgba(255, 56, 151, 0.72) 0 0.58rem, transparent 0.62rem),
    radial-gradient(circle at 9% 50%, rgba(255, 56, 151, 0.58) 0 0.7rem, transparent 0.74rem);
}

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

.login-shell {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(390px, 460px) minmax(280px, 1.1fr);
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2rem);
  padding: clamp(0.75rem, 1.4vw, 1.25rem) clamp(1rem, 2.6vw, 2.5rem);
}

.brand-rail {
  height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.brand-logo {
  width: clamp(110px, 12vw, 160px);
  filter: drop-shadow(0 0 22px rgba(255, 110, 42, 0.62));
}

.top-copy {
  margin-left: clamp(2.5rem, 7vw, 6rem);
  margin-top: -0.5rem;
}

.top-copy h1 {
  color: #e8f4ff;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.15;
  font-weight: 400;
}

.top-copy h1 strong {
  color: #54dfff;
  font-weight: 800;
}

.accent-line {
  width: 62px;
  height: 5px;
  display: block;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2b75, #ffc233, #4ef1ff);
}

.bird-mark {
  width: min(280px, 90%);
  margin: -0.2rem auto 0;
  opacity: 0.52;
  filter: drop-shadow(0 20px 48px rgba(0,0,0,0.3));
}

.bottom-copy {
  padding-left: 0.2rem;
}

.bottom-copy p,
.bottom-copy strong {
  display: block;
  color: rgba(216, 233, 255, 0.78);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.24rem;
  line-height: 1.65;
  text-transform: uppercase;
}

.bottom-copy strong {
  margin-top: 1rem;
  color: #ffffff;
}

.login-stage {
  display: grid;
  place-items: center;
  min-width: 0;
}

.login-card {
  width: min(100%, 430px);
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(0.9rem, 1.6vw, 1.15rem) clamp(1.25rem, 2vw, 1.65rem) clamp(1rem, 1.8vw, 1.35rem);
  border: 1px solid rgba(102, 226, 255, 0.72);
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 8%, rgba(86, 218, 255, 0.28), transparent 26%),
    radial-gradient(circle at 92% 92%, rgba(242, 43, 181, 0.3), transparent 24%),
    linear-gradient(145deg, rgba(36, 113, 214, 0.58), rgba(5, 35, 105, 0.78));
  box-shadow: 0 0 34px rgba(75, 217, 255, 0.34), inset 0 1px 0 rgba(255,255,255,0.22);
  backdrop-filter: blur(18px);
}

.logo-orb {
  width: clamp(110px, 11vw, 142px);
  height: clamp(110px, 11vw, 142px);
  display: grid;
  place-items: center;
  align-self: center;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  border: 2px solid rgba(73, 225, 255, 0.88);
  background:
    radial-gradient(circle at 74% 72%, rgba(255, 199, 46, 0.78), transparent 13%),
    radial-gradient(circle at 87% 49%, rgba(239, 35, 160, 0.72), transparent 24%),
    linear-gradient(145deg, rgba(47, 91, 225, 0.62), rgba(34, 30, 129, 0.7));
  box-shadow: 0 0 32px rgba(73, 225, 255, 0.38), inset 0 1px 0 rgba(255,255,255,0.2);
}

.logo-orb img {
  width: 78%;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.26));
}

.login-header {
  text-align: center;
  margin-bottom: 0.75rem;
}

.login-header h2 {
  font-size: clamp(1.42rem, 2.4vw, 1.82rem);
  line-height: 1;
  font-weight: 800;
}

.login-header p {
  margin-top: 0.35rem;
  color: #b9d7ff;
  font-size: 0.9rem;
}

.login-form {
  display: grid;
  gap: 0.55rem;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(139, 215, 255, 0.66);
  border-radius: 9px;
  background: rgba(36, 96, 178, 0.58);
  box-shadow: inset 0 1px 12px rgba(0,0,0,0.16), 0 0 18px rgba(73, 198, 255, 0.14);
}

.input-shell ion-icon {
  width: 46px;
  flex: 0 0 46px;
  color: #dff6ff;
  font-size: 1.25rem;
}

.input-action {
  margin-left: auto;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: none;
  color: #ffffff;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
}

.input-shell input::placeholder {
  color: rgba(229, 241, 255, 0.86);
}

.login-button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.1rem;
  padding: 0 1rem;
  color: #ffffff;
  background: linear-gradient(95deg, #ffc02b, #ff6932 24%, #ef267d 62%, #dc0cd3);
  box-shadow: 0 14px 28px rgba(235, 40, 134, 0.32), inset 0 1px 0 rgba(255,255,255,0.32);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
}

.login-button ion-icon {
  justify-self: end;
  font-size: 1.45rem;
}

.forgot-link {
  align-self: center;
  margin: 0.65rem 0 0.75rem;
  color: #49d9ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.cta-stack {
  display: grid;
  gap: 0.62rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(160, 210, 255, 0.18);
}

.cta-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0.78rem;
  align-items: center;
  padding: 0.78rem 0.92rem;
  border-radius: 10px;
  color: #102453;
  background: rgba(231, 240, 255, 0.92);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.cta-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1.7rem;
}

.cta-icon.rocket {
  color: #168cff;
  background: rgba(255,255,255,0.72);
}

.cta-icon.gift {
  color: #b900ff;
  background: rgba(255,255,255,0.72);
}

.cta-card h3 {
  margin-bottom: 0.42rem;
  color: #102453;
  font-size: 0.78rem;
  line-height: 1.26;
  font-weight: 900;
}

.cta-button {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0 0.9rem;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.cta-button.primary {
  background: linear-gradient(95deg, #ff9f24, #ff3f6b);
  box-shadow: 0 8px 18px rgba(255, 72, 78, 0.34);
}

.cta-button.secondary {
  background: #091735;
  box-shadow: 0 8px 18px rgba(0,0,0,0.24);
}

.building-panel {
  position: relative;
  height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding-right: 0.2rem;
  background:
    linear-gradient(90deg, rgba(2, 18, 57, 0.1), rgba(11, 55, 137, 0.28)),
    url("../images/fondo_yudi.png") center right / cover no-repeat;
  border-radius: 0;
  overflow: hidden;
}

.building-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 24, 71, 0.38), rgba(9, 56, 155, 0.2), rgba(3, 15, 48, 0.42));
}

.right-copy,
.right-signature {
  position: relative;
  z-index: 1;
  text-align: left;
  text-transform: uppercase;
}

.right-copy {
  margin-right: clamp(1rem, 5vw, 5rem);
  color: rgba(238, 247, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24rem;
  line-height: 1.65;
}

.right-signature {
  position: absolute;
  right: 0.4rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  font-size: 0.58rem;
  letter-spacing: 0.2rem;
  line-height: 1.2;
}

.accent-line.small {
  width: 38px;
  margin: 0;
}

@media (max-width: 1050px) {
  html,
  body {
    height: 100vh;
    overflow: hidden;
  }

  .login-shell {
    height: 100vh;
    min-height: 0;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0.85rem;
  }

  .brand-rail,
  .building-panel {
    display: none;
  }

  .login-card {
    width: min(100%, 430px);
    max-height: calc(100vh - 1.7rem);
    padding: 0.8rem 1rem;
  }

  .logo-orb {
    width: clamp(86px, 18vh, 118px);
    height: clamp(86px, 18vh, 118px);
  }

  .cta-card {
    min-height: 70px;
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 0.62rem 0.72rem;
  }

  .cta-icon {
    width: 44px;
    height: 44px;
    font-size: 1.45rem;
  }
}

@media (max-height: 700px) and (min-width: 1051px) {
  .logo-orb {
    width: 104px;
    height: 104px;
    margin-bottom: 0.4rem;
  }

  .login-card {
    width: 410px;
    padding: 0.72rem 1.3rem 0.85rem;
  }

  .cta-card {
    min-height: 72px;
    padding: 0.62rem 0.8rem;
  }

  .cta-icon {
    width: 46px;
    height: 46px;
  }
}
