/* LDHS — Login (cliente y admin)
   Replicado fielmente desde Login Portal Cliente.html */

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.05fr; background: #fff; overflow: hidden; }

.login-visual {
  background: var(--navy);
  color: #fff;
  position: relative; overflow: hidden;
  display: flex;
}
.login-pattern { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-visual-content {
  position: relative; z-index: 2;
  padding: 56px 64px;
  display: flex; flex-direction: column;
  width: 100%;
}
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-logo-mark {
  width: 40px; height: 40px;
  border: 1.5px solid #fff;
  background: transparent;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
  border-radius: 6px;
  position: relative;
}
.login-logo-mark::after {
  content: ''; position: absolute; right: -3px; bottom: -3px;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  border: 1.5px solid var(--navy);
}
.login-logo-text { font-weight: 700; letter-spacing: .04em; font-size: 18px; }
.login-quote { margin-top: auto; margin-bottom: auto; }
.login-quote-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); margin-bottom: 20px; font-weight: 600; }
.login-quote-title {
  font-size: 40px; font-weight: 600; letter-spacing: -.025em;
  line-height: 1.15; margin: 0 0 28px; color: var(--cream);
}
.login-quote-title em { color: #fff; font-style: italic; font-weight: 500; }
.login-quote-divider { width: 32px; height: 2px; background: var(--gold); margin-bottom: 20px; }
.login-quote-sub { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.55; max-width: 380px; margin: 0; }
.login-foot { font-size: 11px; color: rgba(255,255,255,.45); display: flex; gap: 8px; align-items: center; }
.login-foot .sep { color: rgba(255,255,255,.25); }

.login-form-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  background: #fff;
  position: relative;
}
.login-form-corner { position: absolute; top: 24px; right: 28px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }
.login-form-inner { width: 100%; max-width: 380px; }
.login-head { margin-bottom: 32px; }
.login-head h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; color: var(--navy); }
.login-head p { font-size: 14px; color: var(--ink-3); margin: 0; }

.login-error {
  background: var(--err-bg);
  border: 1px solid #e8b7b7;
  border-left: 3px solid var(--err);
  padding: 12px 14px;
  border-radius: var(--r-md);
  color: var(--err);
  margin-bottom: 20px;
  display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.45;
}
.login-error strong { display: block; font-weight: 600; margin-bottom: 2px; }
.login-error-dot { width: 6px; height: 6px; background: var(--err); border-radius: 50%; margin-top: 6px; }

.login-cta {
  width: 100%; height: 52px;
  background: var(--green); color: #fff;
  border: 0; border-radius: 10px;
  font: inherit; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(94,138,43,.4), 0 4px 14px -4px rgba(151,196,89,.6);
  transition: all .15s;
}
.login-cta:hover { background: #88b54e; transform: translateY(-1px); }

.login-or { text-align: center; margin: 22px 0; position: relative; color: var(--ink-3); font-size: 12px; }
.login-or::before, .login-or::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 18px); height: 1px; background: var(--line);
}
.login-or::before { left: 0; } .login-or::after { right: 0; }
.login-or span { background: #fff; padding: 0 10px; position: relative; }

.login-secondary {
  width: 100%; height: 48px;
  background: #fff; color: var(--navy);
  border: 1px solid var(--line-2); border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer;
  transition: all .12s;
}
.login-secondary:hover { border-color: var(--navy); background: var(--cream-2); }

.login-row { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 24px; }
.login-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--navy); cursor: pointer; user-select: none; }
.login-check input { display: none; }
.login-check-box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-2); border-radius: 4px;
  background: #fff; position: relative;
  transition: all .12s;
}
.login-check input:checked + .login-check-box { background: var(--navy); border-color: var(--navy); }
.login-check input:checked + .login-check-box::after {
  content: ''; position: absolute; left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.login-forgot { font-size: 13px; color: var(--teal); font-weight: 500; }

.login-form-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

@media (max-width: 800px) {
  .login-page { grid-template-columns: 1fr; min-height: 100vh; }
  .login-visual { display: none; }
  .login-form-wrap { padding: 32px 22px; }
}
