/* ==================================================
   EXALAB LOGIN REDESIGN (Split Layout)
   ================================================== */

:root {
  /* Corporate Colors */
  --exalab-primary: #0a4b78;
  --exalab-primary-light: #1a5a8a;
  --exalab-secondary: #3b82f6;
  --exalab-accent: #14b8a6;
  --exalab-gradient-header: linear-gradient(135deg, #0a4b78 0%, #3b82f6 100%);
  --exalab-gradient-button: linear-gradient(135deg, #3b82f6 0%, #14b8a6 100%);
  --exalab-gradient-button-hover: linear-gradient(
    135deg,
    #2563eb 0%,
    #0d9488 100%
  );

  /* Overlay Gradient for Hero */
  /* Blue to Teal transparency */
  --exalab-hero-overlay: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.85) 0%,
    rgba(20, 184, 166, 0.85) 100%
  );
}

body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
}

/* Main Split Container */
.login-split-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: #f8fafc;
}

/* ===== Left Column: HERO ===== */
.login-hero {
  flex: 1;
  position: relative;
  display: none; /* Hidden on mobile by default */
  background-image: url("exalab-web-plugin-checkin-electronico.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

@media (min-width: 992px) {
  .login-hero {
    display: block;
  }
}

/* Gradient Overlay */
.login-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--exalab-hero-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  color: #ffffff;
}

/* Logo placement: Top Left */
.hero-logo {
  width: 140px;
  height: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1); /* Make generic logo white if needed, or use white asset */
}

/* Text placement: Centered vertically */
.hero-text-block {
    margin-top: auto;
    margin-bottom: auto; /* Vertically center the text */
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2.hero-title {
    font-size: 2rem; /* Smaller than the main H1 */
    font-weight: 600;
    opacity: 0.9;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.95;
  max-width: 80%;
}

/* Hero Footer */
.hero-footer {
    margin-top: auto; /* Push to bottom */
    font-size: 0.8rem;
    opacity: 0.8;
    text-align: center;
    width: 100%;
}
.hero-footer a {
    color: white;
    text-decoration: underline;
}


/* ===== Right Column: LOGIN FORM ===== */
.login-form-container {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #ffffff;
  position: relative;
}

@media (min-width: 992px) {
  .login-form-container {
    flex: 0 0 500px; /* Fixed width for form column on desktop, or percentage */
    max-width: 40%;
  }
}

.exalab-login-card {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Soft shadow */
  margin-bottom: 2rem;
  border: 1px solid #f1f5f9;
}

/* Input Styles */
.form-floating > .form-control {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.form-floating > .form-control:focus {
  border-color: var(--exalab-secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Styles - Exalab Gradient */
.btn-exalab-gradient {
  background: var(--exalab-gradient-button);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.8rem;
  width: 100%;
  border-radius: 8px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-exalab-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  color: white;
}

/* Links */
.login-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.link-exalab {
  color: var(--exalab-primary);
  text-decoration: none;
  font-weight: 500;
}

.link-exalab:hover {
  text-decoration: underline;
}

/* Custom Checkbox style to match corporate if needed */
.form-check-input:checked {
  background-color: var(--exalab-primary);
  border-color: var(--exalab-primary);
}

/* ===== Footer ===== */
.login-footer {
  width: 100%;
  max-width: 400px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

.footer-support {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.footer-support strong {
  display: block;
  color: var(--exalab-primary);
  margin-bottom: 0.5rem;
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
