/* Portal clientes — mismo layout Tiffany que portal de proveedores (50/50) */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  overflow: hidden;
  background: linear-gradient(165deg, #dff8f4 0%, #c8f0ea 45%, #b0e8df 100%);
}

body.loaded { background-image: none; }

.container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* Izquierda — imagen (assets/img/proveedores-cannonpuntana.com-2.png) + velos verde Tiffany semitransparentes */
.left-side {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #0a4a45;
  background-image:
    radial-gradient(ellipse 85% 65% at 18% 38%, rgba(129, 216, 208, 0.38) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 88% 78%, rgba(45, 196, 182, 0.28) 0%, transparent 50%),
    linear-gradient(
      155deg,
      rgba(10, 74, 69, 0.78) 0%,
      rgba(13, 92, 86, 0.72) 32%,
      rgba(15, 109, 102, 0.68) 58%,
      rgba(20, 143, 133, 0.65) 100%
    ),
    url('../img/login-hero.png');
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, left center;
  background-repeat: no-repeat;
}

.left-side video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
  filter: brightness(0.68);
}

/* Contenido izquierdo (mockup: marca + titular + barra pilares) */
.left-side-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

.left-side-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.35rem 8% 0.75rem;
  flex-shrink: 0;
}

.left-brand-logo {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.left-brand-name {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.left-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 8% 1.25rem;
  min-height: 0;
}

.hero-line1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.hero-highlight {
  margin: 0.2rem 0 0;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: #5eead4;
  line-height: 1.22;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.hero-line3 {
  margin: 0.85rem 0 0;
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.55;
  max-width: 24rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

.hero-powered {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.05rem;
  max-width: 24rem;
}

.hero-powered-logo {
  height: 96px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.hero-powered-text {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

.hero-accent-line {
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 1.1rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #5eead4, #2dd4bf);
  box-shadow: 0 0 14px rgba(94, 234, 212, 0.5);
}

/* Barra inferior: Insumos · Proveedores · Logística */
.left-side-features {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  margin: 0 6% 1.35rem;
  padding: 1.15rem 0.6rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(94, 234, 212, 0.42);
  background: rgba(5, 24, 22, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.left-feature-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 0.25rem 0.65rem;
  min-width: 0;
}

.left-feature-col:not(:last-child) {
  border-right: 1px solid rgba(129, 216, 208, 0.28);
}

.left-feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 109, 102, 0.5);
  border: 1px solid rgba(129, 216, 208, 0.55);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.left-feature-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.left-feature-desc {
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  max-width: 11rem;
}

.left-side-features-6 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
  gap: 0;
}

.left-side-features-6 .left-feature-col {
  flex: none;
  max-width: none;
  width: auto;
}

.left-side-features-6 .left-feature-col:not(:last-child) {
  border-right: 1px solid rgba(129, 216, 208, 0.28);
}

.left-side-features-6 .left-feature-col:nth-child(3n) {
  border-right: none;
}

.left-side-features-6 .left-feature-col:nth-child(n+4) {
  padding-top: 0.85rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(129, 216, 208, 0.22);
}

.left-side-features-6 .left-feature-desc {
  max-width: 12rem;
}

.left-side-features-6 .left-feature-icon-box {
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
}

@media (max-width: 991px) {
  .left-side-features-6 {
    display: flex;
    flex-direction: column;
  }
  .left-side-features-6 .left-feature-col {
    flex: none;
    max-width: none;
  }
  .left-side-features-6 .left-feature-col:not(:last-child) {
    border-right: none;
  }
  .left-side-features-6 .left-feature-col:nth-child(n+4) {
    padding-top: 0.65rem;
    margin-top: 0;
    border-top: none;
  }
}

/* Derecha */
.right-side {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
  position: relative;
  background: linear-gradient(168deg, #f0fdfb 0%, #e6faf7 38%, #dcf5f1 72%, #d0f0eb 100%);
  overflow: hidden;
}

.right-side::before,
.right-side::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.right-side::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(20, 143, 133, 0.14) 0%, transparent 70%);
}

.right-side::after {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(129, 216, 208, 0.2) 0%, transparent 70%);
}

.right-side > * {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.login-box {
  width: 90%;
  max-width: 420px;
  --login-input-max: 380px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1.2s ease;
  position: relative;
  z-index: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo-empresa-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
  max-width: var(--login-input-max);
  box-sizing: border-box;
}

.logo-empresa {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  display: block;
}

.portal-titulo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a4a45;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.portal-subtitulo {
  font-size: 0.88rem;
  color: #3d7a73;
  margin: 0 0 8px;
  line-height: 1.4;
}

.portal-hint {
  width: 100%;
  max-width: var(--login-input-max, 380px);
  font-size: 0.82rem;
  color: #5a8f87;
  margin: 0 0 16px;
  line-height: 1.45;
  text-align: center;
  box-sizing: border-box;
}

.portal-hint-prueba {
  margin-top: -8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(45, 196, 182, 0.12);
  border: 1px solid rgba(10, 74, 69, 0.2);
  border-radius: 8px;
  color: #0a4a45;
  font-size: 0.8rem;
}

.portal-hint-prueba strong {
  font-weight: 600;
  color: #085f59;
}

.login-acceso-nota {
  width: 100%;
  max-width: var(--login-input-max, 380px);
  margin: 10px 0 0;
  text-align: left;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #5a8f87;
  box-sizing: border-box;
}

.login-acceso-nota p {
  margin: 0 0 0.45rem;
}

.login-acceso-nota a {
  color: #0f6d66;
  font-weight: 600;
}

.login-acceso-nota ul {
  margin: 0;
  padding-left: 1.1rem;
}

.login-acceso-nota li {
  margin: 0.15rem 0;
}

.login-box label.sr-only-vis {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.portal-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--login-input-max, 380px);
}

.field-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: var(--login-input-max, 380px);
  margin: 0;
  box-sizing: border-box;
}

.field-label {
  display: block;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: #2d6a62;
  margin: 10px 0 4px;
  text-align: left;
  box-sizing: border-box;
}

.field-group:first-of-type .field-label {
  margin-top: 0;
}

.login-box input {
  display: block;
  width: 100%;
  max-width: none;
  padding: 13px 14px;
  margin: 0;
  border: 1px solid #9dd9cf;
  border-radius: 8px;
  font-size: 15px;
  min-height: 48px;
  background: #fff;
  box-sizing: border-box;
}

.login-box input:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.22);
}

.login-box input::placeholder {
  color: #94b8b2;
}

.login-box .portal-form > button[type="submit"] {
  width: 100%;
  max-width: var(--login-input-max, 380px);
  padding: 14px;
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 14px;
  transition: filter 0.2s, transform 0.15s;
  min-height: 48px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.login-box .portal-form > button[type="submit"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Franja informativa debajo de Ingresar (derecha) */
.login-trust-strip {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: var(--login-input-max, 380px);
  margin-top: 1.25rem;
  padding: 1rem 0.85rem;
  box-sizing: border-box;
  background: rgba(224, 250, 245, 0.85);
  border: 1px solid rgba(45, 106, 98, 0.12);
  border-radius: 12px;
}

.login-trust-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.login-trust-icon {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: #0d9488;
  filter: drop-shadow(0 1px 1px rgba(13, 148, 136, 0.2));
}

.login-trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.login-trust-text strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f766e;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.login-trust-text span {
  font-size: 0.68rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.3;
}

@media (max-width: 420px) {
  .login-trust-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.9rem 0.75rem;
  }
  .login-trust-item {
    flex: none;
  }
}

.alert-error {
  width: 100%;
  max-width: var(--login-input-max);
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
  text-align: left;
  border: 1px solid #fecaca;
}

.footer {
  margin-top: 14px;
  font-size: 12px;
  color: #4a7d76;
  opacity: 0.95;
  text-align: center;
}
.footer a {
  color: #0f6d66;
  text-decoration: underline;
}

@media (max-width: 991px) {
  .container { flex-direction: column; overflow-y: auto; height: auto; min-height: 100vh; }
  .left-side, .right-side { width: 100%; min-height: 260px; }
  html, body { overflow: auto; }
  .left-side { min-height: 380px; }
  .left-hero {
    flex: 0 1 auto;
    padding: 1rem 8% 1rem;
  }
  .hero-powered-logo {
    height: 72px;
  }
  .left-side-features {
    flex-direction: column;
    margin: 0 5% 1rem;
    padding: 0.85rem 0.75rem 1rem;
  }
  .left-feature-col {
    flex: none;
    padding: 0.65rem 0.4rem;
  }
  .left-feature-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(129, 216, 208, 0.22);
  }
  .left-feature-desc {
    max-width: 18rem;
  }
}
