/* ==========================================================================
   LIDERARWEB · Pantalla de acceso (rediseño)
   Reemplaza a _lib/libraries/grp/liderar/login/css/login.css
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(13, 148, 136, .38), transparent 62%),
    radial-gradient(760px 460px at 105% 110%, rgba(245, 158, 11, .16), transparent 60%),
    #1f1d1b;
  background-attachment: fixed;
}

/* Trama sutil de fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: 0;
}

button, input, select, textarea { font: inherit; margin: 0 }
img { border-style: none }

/* ---------- Tarjeta ---------- */
.page {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  margin: max(6vh, 24px) auto 32px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .2);
  animation: lw-rise .45s ease-out both;
}

@keyframes lw-rise {
  from { opacity: 0; transform: translateY(12px) }
  to   { opacity: 1; transform: none }
}

/* Banda superior con el logo (mismo tono que el fondo del logo) */
.header {
  height: auto;
  padding: 30px 24px 26px;
  background: #3e3b39;
  text-align: center;
  border-bottom: 3px solid #0d9488;
}
.header img { display: inline-block; max-width: 100%; height: auto }

/* ---------- Formulario ---------- */
.form {
  position: relative;
  padding: 30px 32px 28px;
  background: #ffffff;
  box-shadow: none;
  border-radius: 0;
}
.form.form-center { width: auto; margin: 0 }

.form h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #0f172a;
}
.form .lw-subtitle {
  margin: 0 0 24px;
  font-size: 13px;
  color: #64748b;
}

.form > .control { margin-bottom: 16px; position: relative }

.form .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.form > .control .input,
.form > .control select,
.form .scFormObjectOdd {
  display: block;
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form > .control select { cursor: pointer }
.form > .control .input::placeholder { color: #94a3b8; opacity: 1 }

.form > .control .input:hover,
.form > .control select:hover { border-color: #94a3b8 }

.form > .control .input:focus,
.form > .control select:focus,
.form .scFormObjectOdd:focus,
.form .scFormObjectOddFocus,
.form .scFormObjectFocusOdd {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, .18);
  background: #ffffff;
}

/* Clave con botón de "ver" */
.form .scFormObjectOddPwdBox {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.form .scFormObjectOddPwdBox .input { padding-right: 44px }
.form .scFormObjectOddPwdBox span.sc-ui-pwd-toggle-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  bottom: auto;
  float: none;
  transform: translateY(-50%);
  color: #64748b;
  line-height: 1;
}
.form .scFormObjectOddPwdBox span.sc-ui-pwd-toggle-icon:hover { color: #0d9488 }

/* Captcha */
#SC_captcha_hidden table { margin-bottom: 12px }
#SC_captcha_hidden img { border-radius: 8px; border: 1px solid #e2e8f0 }
#SC_captcha_hidden input.scFormObjectOdd { height: 40px; width: 90px; margin: 0 8px }

/* ---------- Botón Ingresar ---------- */
.form > .submit { margin-top: 24px; margin-bottom: 8px }
.form > .submit .button {
  display: inline-block;
  width: auto;
  height: 46px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #ffffff;
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(13, 148, 136, .35);
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, filter .15s;
}
.form > .submit .button.button-block { width: 100% }
.form > .submit .button:hover { filter: brightness(.95); box-shadow: 0 8px 20px rgba(13, 148, 136, .45) }
.form > .submit .button:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(13, 148, 136, .35) }
.form > .submit .button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(13, 148, 136, .35) }

/* Recordarme */
.form > br { display: none }
#txtremember { display: block; margin-top: 14px; font-size: 13px; color: #475569 }
#txtremember label { cursor: pointer; user-select: none }
#txtremember input[type="checkbox"] { accent-color: #0d9488; width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px }

/* Pie */
.lw-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  margin: 0 0 24px;
}

/* ---------- Mensajes de error del sistema ---------- */
#id_error_display_fixed {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 18px 20px;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
td.scFormErrorMessage { padding: 22px 0 4px !important; color: #991b1b }
td.scFormErrorTitleFont { color: rgba(0, 0, 0, 0); position: relative; top: 8px }
td.scFormErrorTitleFont img { position: absolute; left: 50%; margin-left: -15px; margin-top: -5px }
a.scButton_default {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 7px;
  text-decoration: none;
  color: #475569;
}

/* ---------- Móvil ---------- */
@media (max-width: 480px) {
  .page { margin-top: 16px; border-radius: 14px }
  .form { padding: 24px 20px 22px }
  .header { padding: 22px 16px 20px }
}
