/* ==========================================================================
   LOGGER X — Ventana de Inicio de Sesión Moderna
   ========================================================================== */

:root {
  --lx-bg-deep: #12201d;
  --lx-bg-slate: #1c2d3a;
  --lx-orange: #dc5b26;
  --lx-orange-hover: #c24918;
  --lx-steel: #2e5070;
  --lx-ink: #0f172a;
  --lx-muted: #526277;
  --lx-border: #d8e1eb;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--lx-ink);
  background: radial-gradient(circle at 18% 18%, #253d37 0%, var(--lx-bg-deep) 48%, #0e1821 100%);
}

.login-viewport {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 940px;
  min-height: 560px;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  box-shadow:
    0 28px 65px rgba(4, 12, 20, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Panel Izquierdo con Ilustración */
.login-art-pane {
  position: relative;
  background: #223530;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.login-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.login-art-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 46px 28px 24px;
  background: linear-gradient(
    to top,
    rgba(11, 22, 20, 0.90) 0%,
    rgba(11, 22, 20, 0.58) 58%,
    rgba(11, 22, 20, 0) 100%
  );
  color: #f8fafc;
}

.login-art-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  background: rgba(220, 91, 38, 0.92);
  color: #ffffff;
  margin-bottom: 8px;
}

.login-art-caption {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(241, 245, 249, 0.92);
  max-width: 360px;
}

/* Panel Derecho con Formulario */
.login-form-pane {
  padding: 42px 42px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}

.brand-logo-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #132232;
  line-height: 1.1;
}

.brand-title span {
  color: var(--lx-orange);
}

.brand-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--lx-muted);
  font-weight: 500;
}

.welcome-block {
  margin-bottom: 22px;
}

.welcome-block h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--lx-ink);
}

.welcome-block p {
  margin: 0;
  font-size: 13.5px;
  color: var(--lx-muted);
  line-height: 1.45;
}

.login-alert {
  margin-bottom: 16px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.hidden {
  display: none !important;
}

.field-group {
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #263648;
  margin-bottom: 6px;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--lx-border);
  border-radius: 11px;
  background: #f8fafc;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.input-shell:focus-within {
  background: #ffffff;
  border-color: var(--lx-steel);
  box-shadow: 0 0 0 3.5px rgba(46, 80, 112, 0.14);
}

.field-icon {
  margin-left: 13px;
  color: #64748b;
  flex-shrink: 0;
}

.input-shell input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 12px 12px 10px;
  font-size: 14.5px;
  color: var(--lx-ink);
  outline: none;
}

.pw-toggle-btn {
  border: none;
  background: transparent;
  color: #64748b;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 8px;
}

.pw-toggle-btn:hover,
.pw-toggle-btn.active {
  color: var(--lx-orange);
}

.btn-login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px 18px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #e0632e 0%, #c84c19 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(220, 91, 38, 0.28);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-login-submit:hover:not(:disabled) {
  filter: brightness(1.04);
  box-shadow: 0 10px 24px rgba(220, 91, 38, 0.36);
}

.btn-login-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-login-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.login-footer {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 780px) {
  .login-card {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .login-art-pane {
    height: 230px;
  }

  .login-form-pane {
    padding: 28px 24px 24px;
  }
}
