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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fc;
  color: #061333;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}

/* =========================
   IZQUIERDA
========================= */

.brand-panel {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #001e70;
}

.brand-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 18, 70, .96), rgba(0, 50, 145, .86)),
    url("../img/backgrounds/office-bg.svg");
  background-size: cover;
  background-position: center;
}

.white-curve {
  position: absolute;
  width: 48%;
  height: 122%;
  top: -8%;
  right: -22%;
  background: #f8fbff;
  border-radius: 58% 0 0 58%;
  transform: rotate(9deg);
  z-index: 2;
  box-shadow: -40px 0 80px rgba(0, 0, 0, .08);
}

.orange-wave {
  position: absolute;
  width: 72%;
  height: 120px;
  left: -8%;
  bottom: 24%;
  background: #ff8a00;
  border-radius: 50%;
  transform: rotate(-5deg);
  z-index: 3;
  filter: blur(1px);
}

.blue-wave {
  position: absolute;
  width: 130%;
  height: 360px;
  left: -12%;
  bottom: -15%;
  background: #00146e;
  border-radius: 55% 55% 0 0;
  transform: rotate(6deg);
  z-index: 4;
}

.brand-content {
  min-height: 100vh;
  position: relative;
  z-index: 5;
  padding: 64px 58px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 36px;
  color: #fff;
  max-width: 760px;
}

.alianza-logo {
  width: 155px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-header h1 {
  font-size: clamp(56px, 5vw, 82px);
  line-height: .94;
  font-weight: 900;
  letter-spacing: .5px;
  color: #fff;
  text-shadow:
    0 4px 10px rgba(0, 0, 0, .35),
    0 16px 32px rgba(0, 0, 0, .20);
}

.brand-header p {
  margin-top: 18px;
  font-size: clamp(19px, 1.45vw, 25px);
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

.logo-strip {
  width: min(88%, 760px);
  background: rgba(255, 255, 255, .96);
  border-radius: 28px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
  backdrop-filter: blur(10px);
  margin-top: -40px;
}

.logo-strip img {
  width: 100%;
  height: 96px;
  object-fit: contain;
}

.brand-footer {
  color: #fff;
  max-width: 760px;
  position: relative;
  z-index: 6;
  margin-top: -40px;
}

.brand-footer h2 {
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.2;
  margin-bottom: 14px;
  color: #fff;
  text-shadow:
    0 4px 10px rgba(0, 0, 0, .38),
    0 12px 26px rgba(0, 0, 0, .22);
}

.accent-line {
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: #ff8a00;
  display: block;
  margin-bottom: 24px;
}

.brand-footer p {
  font-size: 18px;
  color: rgba(255, 255, 255, .96);
  text-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

/* =========================
   DERECHA
========================= */

.form-panel {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(0, 82, 255, .08), transparent 33%),
    #f6f8fd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 48px;
}

.login-card {
  width: 100%;
  max-width: 640px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(220, 227, 240, .9);
  border-radius: 30px;
  padding: 48px 52px;
  box-shadow: 0 32px 90px rgba(15, 23, 42, .13);
  backdrop-filter: blur(12px);
}

.lock-logo {
  width: 86px;
  height: 86px;
  display: block;
  margin: 0 auto 24px;
}

.login-card h2 {
  text-align: center;
  font-size: clamp(34px, 3vw, 46px);
  color: #071330;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: #667085;
  font-size: 16px;
  margin-bottom: 30px;
}

.login-card > label {
  display: block;
  font-weight: 800;
  color: #081534;
  margin-bottom: 10px;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.company-option {
  height: 88px;
  border: 1px solid #d7e2f2;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
  cursor: pointer;
  transition: .18s ease;
}

.company-option input {
  display: none;
}

.company-option img {
  width: 100%;
  height: 68px;
  object-fit: contain;
}

.company-option.active {
  border: 2px solid #0052ff;
  box-shadow: 0 0 0 4px rgba(0, 82, 255, .10);
}

.company-option.active::after {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0052ff;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.input-group {
  height: 56px;
  border: 1px solid #d7e2f2;
  border-radius: 14px;
  background: #fbfdff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 20px;
}

.input-group:focus-within {
  border-color: #0052ff;
  box-shadow: 0 0 0 4px rgba(0, 82, 255, .10);
  background: #fff;
}

.input-group input {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 16px;
}

.show-pass {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.forgot {
  display: block;
  text-align: right;
  color: #0052ff;
  text-decoration: none;
  font-weight: 800;
  margin: -6px 0 26px;
}

.submit-btn {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0052ff, #0036cc);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(0, 82, 255, .26);
  cursor: pointer;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 30px 0 22px;
  color: #667085;
}

.divider span {
  height: 1px;
  background: #d7e2f2;
}

.support,
.ssl {
  text-align: center;
  color: #667085;
}

.ssl strong {
  color: #0052ff;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .brand-panel,
  .brand-content {
    min-height: 540px;
  }

  .brand-content {
    padding: 38px;
  }

  .white-curve {
    width: 52%;
    right: -30%;
  }
}

@media (max-width: 720px) {
  .brand-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .alianza-logo {
    width: 128px;
    height: auto;
  }

  .brand-header h1 {
    font-size: clamp(48px, 4vw, 76px);
  }

  .logo-strip,
  .company-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-strip {
    width: 100%;
  }

  .form-panel {
    padding: 24px;
  }

  .login-card {
    padding: 34px 24px;
  }
}
