/* ============================================================================
   Dental 360 — Login creativo (hero editorial + glass)
   ============================================================================ */

.login-split {
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Hero base --- */
.login-hero {
  flex: 1.15;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.login-hero-bg {
  position: absolute;
  inset: -4%;
  background: center/cover no-repeat;
  transform: scale(1.06);
  animation: loginKenBurns 22s ease-in-out infinite alternate;
  z-index: 0;
}

.login-hero--staff .login-hero-bg { background-image: url('../img/login-hero-staff.png'); background-position: 70% center; }
.login-hero--portal .login-hero-bg { background-image: url('../img/login-hero-portal.png'); background-position: 65% center; }
.login-hero--central .login-hero-bg { background-image: url('../img/login-hero-central.png'); background-position: 60% center; }

@keyframes loginKenBurns {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

.login-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.login-hero--staff .login-hero-scrim {
  background:
    linear-gradient(155deg, rgba(8, 20, 48, .94) 0%, rgba(15, 39, 68, .72) 38%, rgba(30, 64, 175, .15) 68%, rgba(30, 64, 175, .05) 100%),
    linear-gradient(0deg, rgba(8, 20, 48, .85) 0%, transparent 45%);
}

.login-hero--portal .login-hero-scrim {
  background:
    linear-gradient(155deg, rgba(6, 44, 42, .93) 0%, rgba(15, 118, 110, .68) 40%, rgba(13, 148, 136, .12) 70%, transparent 100%),
    linear-gradient(0deg, rgba(6, 44, 42, .88) 0%, transparent 50%);
}

.login-hero--central .login-hero-scrim {
  background:
    linear-gradient(155deg, rgba(20, 18, 58, .94) 0%, rgba(49, 46, 129, .7) 42%, rgba(67, 56, 202, .14) 72%, transparent 100%),
    linear-gradient(0deg, rgba(20, 18, 58, .9) 0%, transparent 48%);
}

/* Orbes decorativos */
.login-hero-deco {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .45;
  animation: loginOrbFloat 8s ease-in-out infinite;
}

.login-orb--1 { width: 220px; height: 220px; top: 8%; right: 12%; background: #60A5FA; animation-delay: 0s; }
.login-orb--2 { width: 160px; height: 160px; bottom: 22%; right: 28%; background: #34D399; animation-delay: -2s; }
.login-orb--3 { width: 120px; height: 120px; top: 35%; left: 55%; background: #A78BFA; animation-delay: -4s; }

.login-hero--portal .login-orb--1 { background: #5EEAD4; }
.login-hero--portal .login-orb--2 { background: #2DD4BF; }
.login-hero--portal .login-orb--3 { background: #99F6E4; }

.login-hero--central .login-orb--1 { background: #818CF8; }
.login-hero--central .login-orb--2 { background: #6366F1; }
.login-hero--central .login-orb--3 { background: #C4B5FD; }

@keyframes loginOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(12px, -18px) scale(1.08); }
}

/* Escenario principal — anclado abajo-izquierda */
.login-hero-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 520px;
  margin: 0 0 0 clamp(28px, 6vw, 64px);
  padding: 0 0 clamp(36px, 8vh, 72px);
}

/* Medallón + wordmark */
.login-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.login-medallion {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
}

.login-medallion-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
  animation: loginRingPulse 3s ease-in-out infinite;
}

.login-medallion-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .15);
  animation: loginRingSpin 18s linear infinite;
}

@keyframes loginRingPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.04); opacity: .7; }
}

@keyframes loginRingSpin {
  to { transform: rotate(360deg); }
}

.login-medallion-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, .2),
    0 16px 40px rgba(0, 0, 0, .35);
}

.login-wordmark {
  text-align: left;
}

.login-wordmark-kicker {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 4px;
}

.login-wordmark-title {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}

.login-wordmark--portal .login-wordmark-title { color: #ECFDF5; }
.login-wordmark--central .login-wordmark-title { color: #EEF2FF; }

/* Panel glass */
.login-glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .06) 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .2);
}

.login-glass p {
  margin: 0 0 18px;
  font-size: .92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
  text-align: left;
}

/* Pills / chips */
.login-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: background .2s, transform .2s;
}

.login-pill i { font-size: 1rem; opacity: .9; }

.login-pill:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-1px);
}

/* Stats central — dentro del glass */
.login-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.login-stat {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  text-align: left;
}

.login-stat strong {
  display: block;
  font-size: .8rem;
  color: #fff;
  margin-bottom: 2px;
}

.login-stat span {
  font-size: .68rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.35;
}

/* Marca de agua sutil en la foto */
.login-hero-watermark {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  width: min(280px, 38vw);
  opacity: .12;
  z-index: 2;
  pointer-events: none;
  filter: saturate(1.2);
}

/* Panel formulario */
.login-panel {
  width: min(460px, 44vw);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 48px);
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, .08);
  position: relative;
  z-index: 5;
}

.login-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--d360-primary), #0D9488);
  opacity: .35;
}

/* Ocultar estilos viejos */
.login-hero-content,
.login-hero .logo-big { display: none !important; }
.login-hero::before,
.login-hero::after { display: none !important; }

/* Responsive */
@media (max-width: 960px) {
  .login-split { flex-direction: column; }
  .login-hero {
    flex: none;
    min-height: clamp(320px, 52vh, 480px);
    align-items: flex-end;
  }
  .login-hero-stage {
    max-width: none;
    margin: 0;
    padding: 24px 20px 28px;
  }
  .login-hero-watermark { display: none; }
  .login-panel {
    width: 100%;
    box-shadow: none;
  }
  .login-panel::before { display: none; }
  .login-stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .login-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
  .login-medallion { width: 72px; height: 72px; }
}
