/* Login · estilo tarjeta Bootstrap (sin dependencias externas) */
:root {
  --lg-bg: #dcefee;
  --lg-card: #ffffff;
  --lg-ink: #1f2d33;
  --lg-muted: #8a9aa0;
  --lg-teal: #129e9b;
  --lg-teal-d: #0e807e;
  --lg-border: #ced4da;
  --lg-focus: rgba(18, 158, 155, .25);
  --lg-radius: 22px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
.lg-body {
  margin: 0;
  background: var(--lg-bg);
  color: var(--lg-ink);
  font-family: "Karla", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.lg-shell { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.lg-card {
  display: flex;
  width: 100%;
  max-width: 792px;
  min-height: 490px;
  background: var(--lg-card);
  border-radius: var(--lg-radius);
  box-shadow: 0 1.5rem 3rem rgba(16, 60, 64, .14), 0 .25rem .75rem rgba(16, 60, 64, .06);
  overflow: hidden;
  animation: lg-in .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes lg-in { from { opacity: 0; transform: translateY(12px); } }

/* Imagen */
.lg-media { position: relative; flex: 0 0 42%; min-height: 490px; overflow: hidden; background: #0f7c74; }
.lg-media-art, .lg-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.lg-svg { width: 100%; height: 100%; display: block; }
.lg-photo { object-fit: cover; }
.lg-media-text {
  position: absolute; left: 26px; right: 26px; bottom: 34px;
  color: #fff; display: flex; flex-direction: column; gap: 6px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}
.lg-media-text strong { font-size: 26px; line-height: 1.12; font-weight: 700; }
.lg-media-text span { font-size: 13px; opacity: .9; }
.lg-kicker { font: 700 11px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; color: #a7f3eb; opacity: 1 !important; }

/* Formulario */
.lg-form-side { flex: 1 1 auto; padding: 40px 44px 30px; display: flex; flex-direction: column; align-items: stretch; }
.lg-logo { display: block; width: 100%; max-width: 345px; height: auto; margin: 0 auto 14px; }
.lg-title { margin: 0 0 26px; text-align: center; font-size: 18px; font-weight: 500; line-height: 1.5; color: #212529; }
.lg-form { display: flex; flex-direction: column; }
.lg-group { margin-bottom: 18px; }
.lg-label { display: inline-block; margin-bottom: 8px; font-size: 13px; color: #212529; }
.lg-control {
  display: block; width: 100%; height: 38px;
  padding: 6px 18px;
  font: 400 13px/1.5 inherit; font-family: inherit; color: #212529;
  background: #fff;
  border: 1px solid var(--lg-border);
  border-radius: 3px;
  text-transform: uppercase;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.lg-control::placeholder { color: #a9b3b8; font-size: 10px; letter-spacing: .02em; }
.lg-control:focus { outline: 0; border-color: #86c6e4; box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12); }
.lg-pass { position: relative; }
.lg-pass .lg-control { padding-right: 44px; }
.lg-eye {
  position: absolute; top: 0; right: 0; height: 38px; width: 42px;
  border: 0; background: transparent; color: #8a9aa0; cursor: pointer; border-radius: 0 3px 3px 0;
}
.lg-eye:hover, .lg-eye[aria-pressed="true"] { color: var(--lg-teal); }
.lg-eye:focus-visible { outline: 2px solid var(--lg-teal); outline-offset: -2px; }

.lg-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 34px; margin-top: 2px;
  border: 0; border-radius: 3px;
  background: var(--lg-teal); color: #fff;
  font: 700 12px/1 inherit; font-family: inherit; letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
.lg-btn:hover { background: var(--lg-teal-d); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem var(--lg-focus); }
.lg-btn[disabled] { opacity: .8; cursor: progress; }
.lg-spinner {
  display: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: lg-spin .7s linear infinite;
}
.lg-btn.is-loading .lg-spinner { display: inline-block; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
.lg-btn.is-ok { background: #16a34a; }

.lg-alert {
  margin-top: 14px; padding: 9px 12px; border-radius: 6px;
  font: 600 12px/1.45 ui-monospace, Menlo, Consolas, monospace;
  color: #ffe4e6; background: linear-gradient(90deg, #3b0a17, #1f0a12);
  border: 1px solid rgba(244, 63, 94, .55); box-shadow: 0 0 12px rgba(244, 63, 94, .25);
}
.lg-alert.is-ok { color: #dcfce7; background: linear-gradient(90deg, #052e16, #0b1f24); border-color: rgba(34, 197, 94, .5); box-shadow: none; }
.lg-alert b { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 3px; background: #e11d48; color: #fff; font-size: 10px; letter-spacing: .08em; }
.lg-alert.is-ok b { background: #16a34a; }

.lg-foot { margin: auto 0 0; padding-top: 22px; text-align: center; font-size: 11px; line-height: 1.7; color: var(--lg-muted); }
.lg-foot span { color: #a3b1b5; }

/* las etiquetas de validación se alinean con los controles del login */
.lg-form .hmv-msg.is-error, .lg-form .hmv-msg.is-ok { max-width: none; border-radius: 3px; }

@media (max-width: 720px) {
  .lg-card { flex-direction: column; max-width: 460px; min-height: 0; }
  .lg-media { flex-basis: auto; min-height: 150px; height: 150px; }
  .lg-media-text { bottom: 18px; }
  .lg-media-text strong { font-size: 20px; }
  .lg-form-side { padding: 28px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) { .lg-card { animation: none; } }
