/**
 * Login portal proveedores — estilo mockup Bennetts (dos paneles).
 */
:root {
  --demo-page-bg: #e8f4fc;
  --demo-navy: #0a2d6b;
  --demo-navy-mid: #0c3d8f;
  --demo-navy-deep: #082454;
  --demo-accent: #0ea5e9;
  --demo-accent-btn: #1d9cf0;
  --demo-accent-btn-end: #0b7fd4;
  --demo-text-dark: #0f2d5c;
  --demo-text-muted: #5b7a9d;
  --demo-card-radius: 28px;
  --demo-input-radius: 12px;
  --demo-card-shadow: 0 28px 60px rgba(8, 36, 84, 0.14), 0 8px 24px rgba(8, 36, 84, 0.08);
  --demo-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.demo-login-body {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  font-family: var(--demo-font);
  color: var(--demo-text-dark);
  background: linear-gradient(160deg, #f0f9ff 0%, var(--demo-page-bg) 50%, #dbeafe 100%);
  overflow-x: hidden;
}

.demo-login-bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 15% 20%, rgba(255, 255, 255, 0.9) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(125, 211, 252, 0.35) 0%, transparent 50%);
}

.demo-login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1020px;
}

.demo-login-session-bar {
  margin-bottom: 16px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13px;
  text-align: center;
  color: var(--demo-navy);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 4px 16px rgba(8, 36, 84, 0.06);
}

.demo-login-session-bar a {
  color: var(--demo-accent-btn);
  font-weight: 700;
  text-decoration: none;
}

.demo-login-session-bar a:hover {
  text-decoration: underline;
}

/* —— Tarjeta principal —— */
.demo-login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  border-radius: var(--demo-card-radius);
  overflow: hidden;
  box-shadow: var(--demo-card-shadow);
  background: #fff;
}

/* —— Panel izquierdo (marca) —— */
.demo-login-welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 44px 36px 40px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  overflow: hidden;
}

.demo-login-welcome-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.demo-login-welcome-blob--1 {
  width: 220px;
  height: 220px;
  top: -70px;
  left: -60px;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.55) 0%, transparent 70%);
}

.demo-login-welcome-blob--2 {
  width: 180px;
  height: 180px;
  bottom: -40px;
  right: -50px;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.8) 0%, transparent 70%);
}

.demo-login-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(260px, 88%);
  height: auto;
  margin: 0 auto 28px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.demo-login-illus {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 120px;
  margin: 0 auto 32px;
}

.demo-login-illus svg {
  width: 100%;
  height: 100%;
  display: block;
}

.demo-login-welcome-copy {
  position: relative;
  z-index: 2;
  max-width: 340px;
  margin-top: auto;
}

.demo-login-welcome-title {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--demo-text-dark);
}

.demo-login-welcome-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--demo-text-muted);
}

/* —— Panel derecho (formulario azul) —— */
.demo-login-form-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 40px 36px;
  color: #fff;
  background: linear-gradient(
    165deg,
    var(--demo-navy-deep) 0%,
    var(--demo-navy) 35%,
    var(--demo-navy-mid) 100%
  );
  overflow: hidden;
}

.demo-login-dots {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 72px;
  height: 72px;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(125, 211, 252, 0.9) 2px, transparent 2px);
  background-size: 12px 12px;
  pointer-events: none;
}

.demo-login-badge {
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 5;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--demo-accent-btn), var(--demo-accent));
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.45);
}

.demo-login-form-head {
  margin-bottom: 24px;
}

.demo-login-greet-small {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}

.demo-login-greet-big {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}

.demo-login-form-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.demo-login-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--demo-input-radius);
  font-size: 13px;
  line-height: 1.45;
  background: #fff;
  color: #b91c1c;
  border-left: 4px solid #ef4444;
}

.demo-login-alert--info {
  color: #1d4ed8;
  border-left-color: #3b82f6;
}

.demo-login-alert--ok {
  color: #15803d;
  border-left-color: #22c55e;
}

.demo-login-form {
  width: 100%;
}

.demo-login-field {
  margin-bottom: 20px;
}

.demo-login-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.demo-login-input-box {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 48px;
  padding: 0 14px 0 12px;
  background: #ffffff;
  border-radius: var(--demo-input-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
}

.demo-login-input-box:focus-within {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.45), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.demo-login-input-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  color: #94a3b8;
}

.demo-login-input {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  font-size: 15px;
  font-family: inherit;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #1e293b;
}

.demo-login-input:focus {
  outline: none;
}

.demo-login-input::placeholder {
  color: #94a3b8;
}

.demo-login-toggle-pass {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.demo-login-toggle-pass:hover {
  color: var(--demo-navy);
  background: #f1f5f9;
}

.demo-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 13px;
}

.demo-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  user-select: none;
}

.demo-login-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--demo-accent);
  cursor: pointer;
}

.demo-login-forgot {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 13px;
}

.demo-login-forgot:hover {
  color: #fff;
  text-decoration: underline;
}

.demo-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border: none;
  border-radius: var(--demo-input-radius);
  cursor: pointer;
  background: linear-gradient(90deg, var(--demo-accent-btn) 0%, var(--demo-accent-btn-end) 100%);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.4);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.demo-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.5);
  filter: brightness(1.05);
}

.demo-login-btn:active {
  transform: translateY(0);
}

.demo-login-btn-arrow {
  font-size: 18px;
  line-height: 1;
  opacity: 0.95;
}

.demo-login-form-foot {
  margin: 22px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* Responsive */
@media (max-width: 860px) {
  .demo-login-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .demo-login-welcome {
    padding: 36px 28px 32px;
    border-bottom: 1px solid #e2e8f0;
  }

  .demo-login-illus {
    margin-bottom: 24px;
  }

  .demo-login-welcome-copy {
    margin-top: 0;
  }

  .demo-login-form-panel {
    padding: 36px 28px 32px;
  }

  .demo-login-dots {
    opacity: 0.25;
  }
}
