:root {
    --primary: #111827;
    --primary-soft: #374151;
    --accent: #b91c1c;
    --accent-hover: #991b1b;
    --background: #f8fafc;
    --border: #e2e8f0;
    --text: #172033;
    --muted: #64748b;
    --radius: 12px;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    min-height: 100%;
  }
  
  body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--background);
  }
  
  .login-layout {
    display: grid;
    grid-template-columns: 53% 47%;
    min-height: 100vh;
  }
  
  /* Panel con fotografia */
  
  .login-hero {
    position: relative;
    min-height: 100vh;
    background:
      linear-gradient(
        180deg,
        rgba(8, 16, 29, 0.32) 0%,
        rgba(8, 16, 29, 0.56) 45%,
        rgba(8, 16, 29, 0.90) 100%
      ),
      url("/img/plantafrima.png") center center / cover no-repeat;
    color: #ffffff;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 5vw, 80px);
  }
  
  .hero-tag {
    width: fit-content;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
  }
  
  .hero-eyebrow {
    color: #fca5a5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
  }
  
  .hero-content h1 {
    margin: 18px 0;
    font-size: clamp(38px, 4vw, 66px);
    font-weight: 800;
    letter-spacing: -1.8px;
    line-height: 1.1;
  }
  
  .hero-content p {
    max-width: 470px;
    color: #e2e8f0;
    font-size: 17px;
    line-height: 1.8;
  }
  
  .hero-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d1d5db;
    font-size: 13px;
  }
  
  .hero-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
  }
  
  /* Panel de acceso */
  
  .login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 35px;
    background: #ffffff;
  }
  
  .login-panel-inner {
    width: 100%;
    max-width: 435px;
  }
  
  .login-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 46px;
  }
  
  .brand-logo {
    width: 205px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .brand-subtitle {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
  }
  
  .section-label {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
  }
  
  .login-heading h2 {
    margin: 10px 0 8px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.8px;
  }
  
  .login-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
  }
  
  .login-form {
    margin-top: 35px;
  }
  
  .form-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
  }
  
  .form-field label {
    font-size: 13px;
    font-weight: 700;
  }
  
  .form-field input,
  .form-field select {
    width: 100%;
    height: 49px;
    padding: 0 14px;
    border: 1px solid #d5dce6;
    border-radius: 9px;
    outline: none;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .form-field input:focus,
  .form-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.10);
  }
  
  .form-field input::placeholder {
    color: #94a3b8;
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .form-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 3px 0 19px;
    padding: 12px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
  }
  
  .notice-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-radius: 50%;
    background: #94a3b8;
  }
  
  .btn-login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 0 19px;
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
  }
  
  .btn-login:disabled {
    opacity: 0.65;
    cursor: not-allowed;
  }
  
  .btn-login:not(:disabled):hover {
    background: var(--accent-hover);
  }
  
  .btn-login span {
    font-size: 22px;
  }
  
  /* Pie de pagina */
  
  .login-footer {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
  }
  
  .ti-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .ti-brand img {
    width: 51px;
    height: 51px;
    object-fit: contain;
  }
  
  .ti-brand div {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .ti-brand strong {
    font-size: 12px;
  }
  
  .ti-brand span {
    color: var(--muted);
    font-size: 11px;
  }
  
  .login-footer p {
    margin: 20px 0 0;
    color: #94a3b8;
    font-size: 11px;
  }
  
  /* Adaptacion a pantallas pequenas */
  
  @media (max-width: 900px) {
    .login-layout {
      grid-template-columns: 1fr;
    }
  
    .login-hero,
    .hero-content {
      min-height: 300px;
    }
  
    .hero-content {
      padding: 30px;
    }
  
    .hero-content h1 {
      font-size: 36px;
    }
  
    .hero-content p {
      font-size: 14px;
    }
  
    .login-panel {
      padding: 45px 24px;
    }
  
    .login-panel-inner {
      max-width: 480px;
    }
  }
  
  @media (max-width: 480px) {
    .login-hero,
    .hero-content {
      min-height: 260px;
    }
  
    .hero-content h1 {
      font-size: 30px;
    }
  
    .hero-content p {
      font-size: 13px;
    }
  
    .form-grid {
      grid-template-columns: 1fr;
      gap: 0;
    }
  
    .login-brand {
      margin-bottom: 30px;
    }
  
    .login-heading h2 {
      font-size: 30px;
    }
  }

  /* =========================================================
   LOGIN - AJUSTE DE ALTURA PARA ESCRITORIO
   ========================================================= */

@media (min-width: 901px) {

    .login-layout {
      min-height: 100vh;
      min-height: 100dvh;
      height: 100vh;
      height: 100dvh;
    }
  
    .login-hero,
    .hero-content {
      min-height: 0;
      height: 100%;
    }
  
    .hero-content {
      padding: clamp(24px, 3vw, 48px);
    }
  
    .hero-content h1 {
      font-size: clamp(34px, 3.4vw, 54px);
      margin: 12px 0;
    }
  
    .hero-content p {
      margin: 0;
      font-size: 15px;
      line-height: 1.6;
    }
  
    .login-panel {
      min-height: 0;
      padding: 18px 32px;
      overflow-y: auto;
    }
  
    .login-panel-inner {
      max-width: 435px;
    }
  
    .login-brand {
      gap: 7px;
      margin-bottom: 20px;
    }
  
    .brand-logo {
      width: 165px;
    }
  
    .brand-subtitle {
      font-size: 10px;
    }
  
    .login-heading h2 {
      margin: 6px 0;
      font-size: 30px;
    }
  
    .login-heading p {
      font-size: 13px;
    }
  
    .login-form {
      margin-top: 20px;
    }
  
    .form-field {
      gap: 6px;
      margin-bottom: 12px;
    }
  
    .form-field input,
    .form-field select {
      height: 43px;
    }
  
    .form-notice {
      margin: 0 0 12px;
      padding: 9px 11px;
    }
  
    .btn-login {
      min-height: 46px;
    }
  
    .login-footer {
      margin-top: 20px;
      padding-top: 14px;
    }
  
    .ti-brand img {
      width: 39px;
      height: 39px;
    }
  
    .login-footer p {
      margin-top: 10px;
    }
  }
  
  /* Pantallas de escritorio con poca altura */
  
  @media (min-width: 901px) and (max-height: 750px) {
  
    .login-panel {
      padding: 10px 24px;
    }
  
    .login-brand {
      margin-bottom: 12px;
    }
  
    .brand-logo {
      width: 135px;
    }
  
    .login-heading h2 {
      font-size: 26px;
    }
  
    .login-form {
      margin-top: 12px;
    }
  
    .form-field {
      margin-bottom: 9px;
    }
  
    .form-field input,
    .form-field select {
      height: 39px;
    }
  
    .login-footer {
      margin-top: 12px;
      padding-top: 10px;
    }
  }

  
.fecha-panel[hidden] {
  display: none !important;
}

.fecha-panel {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #dbe4ed;
  border-radius: 14px;
  background: #f8fafc;
}

.fecha-panel-header strong {
  display: block;
  color: #16243a;
  font-size: 15px;
}

.fecha-panel-header p {
  margin: 5px 0 14px;
  color: #64748b;
  font-size: 12px;
}

.fecha-panel .form-field {
  margin-bottom: 14px;
}

.fecha-panel input[type="date"] {
  width: 100%;
  box-sizing: border-box;
}

.fecha-panel .btn-login {
  width: 100%;
}
