/* Copia localizada del CSS del login (incrustada para evitar dependencias externas)
   Contenido tomado de backup/login.css
*/
.main-login-wrapper {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000; /* sits well above the animated background and other overlays */
	pointer-events: auto; /* allow interaction with the form */
	padding: 2vh 2vw; /* ensure some spacing on small screens */
}

/* ==================================================================
	 Background animations and gradients (merged from background.css)
	 ==================================================================
*/

html, body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	margin: 0;
	padding: 0;
}

.text-container {
	z-index: 1;
	width: 100vw;
	height: 100vh;
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
	justify-content: center;
	align-items: center;
	font-size: 96px;
	color: white;
	opacity: 0.8;
	user-select: none;
	text-shadow: 1px 1px rgba(0,0,0,0.1);
}

:root {
  --color-bg1: rgb(20, 24, 36);     /* Azul marino muy oscuro */
  --color-bg2: rgb(10, 12, 20);     /* Casi negro azulado */
  --color1: 40, 80, 140;            /* Azul institucional medio */
  --color2: 90, 120, 170;           /* Azul grisáceo */
  --color3: 246, 202, 19;           /* Amarillo UNGRD */
  --color4: 150, 40, 40;            /* Rojo vino discreto (acentos) */
  --color5: 80, 80, 80;             /* Gris neutro */
  --color-interactive: 246, 202, 19;/* Amarillo interactivo */
  --circle-size: 80%;
  --blending: soft-light;
}

@keyframes moveInCircle {
	0% { transform: rotate(0deg); }
	50% { transform: rotate(180deg); }
	100% { transform: rotate(360deg); }
}

@keyframes moveVertical {
	0% { transform: translateY(-50%); }
	50% { transform: translateY(50%); }
	100% { transform: translateY(-50%); }
}

@keyframes moveHorizontal {
	0% { transform: translateX(-50%) translateY(-10%); }
	50% { transform: translateX(50%) translateY(10%); }
	100% { transform: translateX(-50%) translateY(-10%); }
}

.login-watermark {
  display: none;
}

.login-visual-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding-bottom: 8px;
}

.login-panel-logo {
  height: 32px;
  width: auto;
  opacity: 0.55;
  pointer-events: none;
}

.login-panel-logo-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  text-align: center;
}

.gradient-bg {
	width: 100vw;
	height: 100vh;
	position: fixed; /* stay fixed behind content */
	top: 0;
	left: 0;
	overflow: hidden;
	background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
	z-index: 0; /* behind the main content */
	pointer-events: none; /* allow clicks to pass through */
}

.gradients-container {
	filter: url(#goo) blur(40px);
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 0;
}

.g1, .g2, .g3, .g4, .g5, .interactive {
	position: absolute;
	mix-blend-mode: var(--blending);
	opacity: 1;
}

.g1 {
	background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
	width: var(--circle-size);
	height: var(--circle-size);
	top: calc(50% - var(--circle-size) / 2);
	left: calc(50% - var(--circle-size) / 2);
	animation: moveVertical 30s ease infinite;
}

.g2 {
	background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
	width: var(--circle-size);
	height: var(--circle-size);
	top: calc(50% - var(--circle-size) / 2);
	left: calc(50% - var(--circle-size) / 2);
	transform-origin: calc(50% - 400px);
	animation: moveInCircle 20s reverse infinite;
}

.g3 {
	background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
	width: var(--circle-size);
	height: var(--circle-size);
	top: calc(50% - var(--circle-size) / 2 + 200px);
	left: calc(50% - var(--circle-size) / 2 - 500px);
	transform-origin: calc(50% + 400px);
	animation: moveInCircle 40s linear infinite;
}

.g4 {
	background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
	width: var(--circle-size);
	height: var(--circle-size);
	top: calc(50% - var(--circle-size) / 2);
	left: calc(50% - var(--circle-size) / 2);
	transform-origin: calc(50% - 200px);
	animation: moveHorizontal 40s ease infinite;
	opacity: 0.7;
}

.g5 {
	background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
	width: calc(var(--circle-size) * 2);
	height: calc(var(--circle-size) * 2);
	top: calc(50% - var(--circle-size));
	left: calc(50% - var(--circle-size));
	transform-origin: calc(50% - 800px) calc(50% + 200px);
	animation: moveInCircle 20s ease infinite;
}

.interactive {
	background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
	width: 100%;
	height: 100%;
	top: -50%;
	left: -50%;
	opacity: 0.7;
}

.login-split-layout {
	display: flex;
	width: 1036px; /* target width you provided */
	max-width: 96vw;
	height: 688px; /* target height you provided */
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 8px 40px 0 rgba(0,0,0,0.28);
	background: none;
	position: relative;
	z-index: 70; /* above the main wrapper to ensure hover shadow is visible */
	transition: transform 450ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 550ms cubic-bezier(0.2,0.8,0.2,1);
	gap: 0;
}

/* Enhanced styles for login page */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  padding: 20px;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.login-visual-panel {
  flex: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.card {
  background: rgba(255,255,255,0.08);
  padding: 28px 24px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.card2 {
  position: relative;
  z-index: 1;
  width: 100%;
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-section {
  text-align: center;
  width: 100%;
  margin-bottom: 15px;
}

.form-logo {
  width: 140px;
  height: auto;
  margin-bottom: 12px;
}

.form-welcome-title {
  font-size: 24px;
  margin: 6px 0;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: #FFD600;
}

.system-badge {
  display: inline-block;
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid rgba(255, 214, 0, 0.35);
  color: #FFD600;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.system-name {
  font-size: 38px;
  margin: 0 0 4px 0;
  font-weight: 800;
  letter-spacing: 3px;
  color: #FFD600;
  text-shadow: 0 2px 8px rgba(255, 214, 0, 0.25);
  text-transform: uppercase;
  line-height: 1.1;
}

.system-name-sub {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(255, 214, 0, 0.75);
  display: block;
  margin-top: 2px;
}

.form-welcome-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 10px 0 22px 0;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2px;
  line-height: 1.5;
  padding: 0 10px;
}

.field {
  margin-bottom: 20px;
  position: relative;
  width: 100%;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) inset;
  outline: none;
  box-sizing: border-box;
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input-field:focus {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(246, 202, 19, 0.5);
  box-shadow: 0 0 0 2px rgba(246, 202, 19, 0.15);
}

.btn {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
}

.button1 {
  background: #FFCD00;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: #1a1a1a;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 205, 0, 0.45), 0 0 0 0 rgba(255, 205, 0, 0);
}

.button1:hover {
  background: #ffe030;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 205, 0, 0.55), 0 0 0 3px rgba(255, 205, 0, 0.18);
}

.forgot-password {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-top: 20px;
  width: 100%;
}

.login-error-text {
  color: #ff6b6b;
  font-size: 13px;
  padding-top: 6px;
  display: block;
}

/* Carousel for right panel */
.carousel-container {
  width: 100%;
  height: 80%;
  position: relative;
  overflow: hidden;
}

.carousel-slides {
  height: 100%;
  width: 100%;
  position: relative;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.carousel-slide h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.95);
}

.carousel-slide p {
  font-size: 16px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.carousel-slide .feature-icon {
  font-size: 50px;
  margin-bottom: 20px;
  color: rgb(246, 202, 19);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: rgb(246, 202, 19);
}

/* Illustration style */
.login-illustration {
  max-width: 80%;
  max-height: 200px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.login-illustration:hover {
  transform: scale(1.03);
}

/* Feature icons */
.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: rgb(246, 202, 19);
  background: rgba(255, 255, 255, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.icon-chart, .icon-doc, .icon-briefcase, .icon-mobile {
  font-size: 36px;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .login-split-layout {
    flex-direction: column;
    height: auto;
    max-height: 90vh;
  }
  
  .login-visual-panel {
    display: none; /* Hide carousel on small screens */
  }
  
  .login-form-panel {
    width: 100%;
  }
  
  .card {
    max-width: 100%;
  }
}

