:root {
  --lbp-blue: #003da5;
  --lbp-blue-dark: #002f7a;
  --lbp-text: #1a2b4a;
  --lbp-border: #c8d0d8;
  --lbp-alert-bg: #fce8e8;
  --lbp-alert-text: #9b1c1c;
  --lbp-white: #fff;
  --lbp-sidebar: 400px;
  --lbp-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--lbp-font);
  color: var(--lbp-text);
  background: var(--lbp-white);
}

body { min-height: 100vh; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.is-hidden { display: none !important; }

.lbp-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  background: var(--lbp-alert-bg);
  color: var(--lbp-alert-text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.lbp-alert__icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; }
.lbp-alert__text { flex: 1; margin: 0; }
.lbp-alert__text a { color: inherit; font-weight: 600; text-decoration: underline; }
.lbp-alert__close {
  flex-shrink: 0; border: 0; background: transparent; color: var(--lbp-alert-text);
  cursor: pointer; padding: 2px; line-height: 0;
}

.lbp-shell {
  display: grid;
  grid-template-columns: minmax(300px, var(--lbp-sidebar)) 1fr;
  min-height: calc(100vh - 48px);
}

.lbp-panel {
  background: var(--lbp-white);
  padding: 28px 32px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.lbp-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
}

.lbp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--lbp-blue);
}

.lbp-logo svg { width: 42px; height: 42px; display: block; }

.lbp-logo__text {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.lbp-panel__actions { display: flex; gap: 4px; }

.lbp-icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 8px;
  background: transparent; color: var(--lbp-blue); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

.lbp-icon-btn:hover { background: rgba(0, 61, 165, 0.06); }

.lbp-form h1 {
  margin: 0 0 28px;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--lbp-blue);
  line-height: 1.25;
}

.lbp-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.lbp-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--lbp-border);
  border-radius: 4px;
  font: inherit;
  font-size: 1rem;
  color: var(--lbp-text);
  background: var(--lbp-white);
}

.lbp-input:focus {
  outline: 2px solid rgba(0, 61, 165, 0.35);
  border-color: var(--lbp-blue);
}

.lbp-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 24px;
  font-size: 0.95rem;
}

.lbp-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.lbp-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.lbp-toggle__track {
  position: absolute; inset: 0;
  background: #b8c0c8;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.lbp-toggle__track::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: var(--lbp-white);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lbp-toggle input:checked + .lbp-toggle__track { background: var(--lbp-blue); }
.lbp-toggle input:checked + .lbp-toggle__track::after { transform: translateX(20px); }

.lbp-btn {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.lbp-btn--primary { background: var(--lbp-blue); color: var(--lbp-white); }
.lbp-btn--primary:hover:not(:disabled) { background: var(--lbp-blue-dark); }
.lbp-btn--primary:disabled { opacity: 0.45; cursor: not-allowed; }

.lbp-forgot {
  display: block;
  margin-top: 22px;
  text-align: center;
  color: var(--lbp-blue);
  font-size: 0.9rem;
  text-decoration: underline;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.lbp-pin-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

.lbp-pin-dots {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.lbp-pin-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--lbp-blue);
  background: transparent;
}

.lbp-pin-dots[data-count="1"] span:nth-child(1),
.lbp-pin-dots[data-count="2"] span:nth-child(-n+2),
.lbp-pin-dots[data-count="3"] span:nth-child(-n+3),
.lbp-pin-dots[data-count="4"] span:nth-child(-n+4),
.lbp-pin-dots[data-count="5"] span:nth-child(-n+5),
.lbp-pin-dots[data-count="6"] span:nth-child(-n+6) {
  background: var(--lbp-blue);
}

.lbp-keypad {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.lbp-key {
  height: 48px;
  border: 1px solid var(--lbp-border);
  border-radius: 4px;
  background: var(--lbp-white);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lbp-blue);
  cursor: pointer;
}

.lbp-key:hover { background: rgba(0, 61, 165, 0.06); }

.lbp-hero {
  position: relative;
  background: linear-gradient(180deg, #1a6bb8 0%, #2f9ad4 45%, #5ec4ea 100%);
  color: var(--lbp-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow: hidden;
}

.lbp-hero__slogan {
  margin: 0 0 48px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.lbp-assurance {
  width: min(420px, 100%);
  background: rgba(0, 35, 90, 0.88);
  border-radius: 8px;
  padding: 28px 26px;
}

.lbp-assurance h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
}

.lbp-assurance p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.95;
}

.lbp-assurance__link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--lbp-white);
  font-size: 0.95rem;
  text-decoration: underline;
}

.lbp-btn--outline {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--lbp-white);
  border-radius: 4px;
  background: transparent;
  color: var(--lbp-white);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.lbp-btn--outline:hover { background: rgba(255, 255, 255, 0.1); }

@media (max-width: 900px) {
  .lbp-shell { grid-template-columns: 1fr; }
  .lbp-hero { min-height: 320px; order: -1; }
  .lbp-hero__slogan { margin-bottom: 28px; }
}

@media (max-width: 480px) {
  .lbp-panel { padding: 20px 18px 32px; }
  .lbp-form h1 { font-size: 1.3rem; }
}
