/* ── Variables de Diseño Clínico Premium ── */
:root {
  --teal: #0d9488;
  --teal-hover: #0f766e;
  --teal-glow: rgba(13, 148, 136, 0.15);
  --teal-light: #2dd4bf;
  --slate-dark: #090d16;
  --slate-panel: rgba(15, 23, 42, 0.55);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(13, 148, 136, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  --radius-lg: 12px;
  --radius-sm: 6px;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--slate-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  color: var(--text-main);
}

/* Lienzo de Motes de Polvo Micro-Drift Elegantes */
#dust-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Contenedor Corporativo ── */
.clinical-login-container {
  display: flex;
  width: min(1080px, 95%);
  height: 620px;
  background: rgba(15, 23, 42, 0.35);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.55),
    inset 0 0 30px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
  overflow: hidden;
  position: relative;
}

/* ── Panel Izquierdo: DISEÑO ESTILIZADO CLÍNICO ── */
.panel-branding {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 50px;
  border-right: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.2) 0%, rgba(9, 13, 22, 0.6) 100%);
  overflow: hidden;
  z-index: 1;
}

.brand-viewport {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.brand-svg {
  width: 100%;
  height: 100%;
}

/* Trazado Clínico Exclusivo y Estilizado */
.tooth-path-premium {
  fill: url(#tooth-radial-gradient);
  stroke: var(--teal);
  stroke-width: 2.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 20px rgba(13, 148, 136, 0.25));
}

.tooth-group-premium {
  animation: floatToothPremium 6s ease-in-out infinite;
  transform-origin: 150px 150px;
}

@keyframes floatToothPremium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

.compass-ring {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 1;
}

.compass-ring-active {
  stroke: rgba(13, 148, 136, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  transform-origin: 150px 150px;
  animation: rotateCompass 30s linear infinite;
}

@keyframes rotateCompass {
  100% { transform: rotate(360deg); }
}

.brand-titles {
  text-align: center;
  z-index: 2;
}

.brand-titles h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.brand-titles p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Panel Derecho: PORTAL DE ACCESO RESERVADO ── */
.panel-login-form {
  flex: 0 0 420px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 40px;
  justify-content: center;
  z-index: 1;
  background: rgba(9, 13, 22, 0.4);
}

.login-card {
  width: 100%;
  position: relative;
}

/* Pequeño indicador de Conexión Segura */
.connection-badge {
  position: absolute;
  top: -30px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--teal-light);
  letter-spacing: 0.05em;
  background: rgba(13, 148, 136, 0.08);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.connection-dot {
  width: 6px;
  height: 6px;
  background: #14b8a6;
  border-radius: 50%;
  box-shadow: 0 0 6px #14b8a6;
}

/* Logotipo Minimalista */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.logo-symbol {
  font-size: 22px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.logo-text span {
  color: var(--teal-light);
}

.card-title {
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Formulario Limpio y Corporativo */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.input-container {
  position: relative;
}

.input-container .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
  opacity: 0.7;
}

.input-container input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px 10px 36px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.input-container input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px var(--teal-glow);
  background: rgba(15, 23, 42, 0.85);
}

.input-container input::placeholder {
  color: var(--text-sub);
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  outline: none;
  opacity: 0.6;
}

.toggle-password-btn:hover {
  opacity: 1;
}

/* Alertas Médicas Estándar */
.alert-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-left: 3px solid #ef4444;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12.5px;
  color: #f87171;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Botón de Acceso Profesional */
.btn-submit-premium {
  width: 100%;
  padding: 11px;
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
  margin-top: 20px;
}

.btn-submit-premium:hover {
  background: var(--teal-hover);
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.25);
}

/* Credenciales de Demostración Sobrias */
.demo-badge-pod {
  margin-top: 24px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.demo-badge-pod strong {
  font-weight: 700;
  color: #fff;
}

.footer-credits {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: var(--text-sub);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }
  .clinical-login-container {
    flex-direction: column;
    height: auto;
    width: min(440px, 95%);
    margin: 40px auto;
  }
  .panel-branding {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 35px 20px;
  }
  .brand-viewport {
    width: 220px;
    height: 220px;
    margin-bottom: 15px;
  }
  .panel-login-form {
    padding: 35px 20px;
    flex: auto;
  }
}
