/* Sign-in, forgot-password and setup pages – photo showcase on the left, form on the right.
   Fonts are stored locally so the page works without internet. */
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../vendor/fonts/fraunces-latin-600-normal.b8dca52ca5f9.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../vendor/fonts/instrument-sans-latin-400-normal.c178fc5e2d41.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../vendor/fonts/instrument-sans-latin-500-normal.552cbb998bb6.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../vendor/fonts/instrument-sans-latin-600-normal.36a59be54659.woff2") format("woff2"); }

:root {
  --lg-ink: #14232E;
  --lg-sea: #0F5B66;
  --lg-sea-deep: #0B4651;
  --lg-sea-soft: #E3F0F1;
  --lg-mist: #F4F7F8;
  --lg-line: #E3E9EC;
  --lg-muted: #66798A;
  --lg-ok: #1F8A70;
  --lg-ok-soft: #E1F3EC;
  --lg-danger: #B42318;
  --lg-danger-soft: #FDECEA;
  --lg-warn: #A96A12;
  --lg-warn-soft: #FBF0DA;
}

body:has(.lg-page) { margin: 0; background: #fff; }
.lg-page {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr); min-height: 100vh; min-height: 100dvh;
  background: #fff; font-family: "Instrument Sans", -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--lg-ink);
}

/* ---------- Left: showcase ---------- */
.lg-showcase {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; min-height: 100dvh;
  padding: clamp(30px, 4vw, 58px); overflow: hidden; background: var(--lg-sea-deep); color: #fff; isolation: isolate;
}
.lg-showcase-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.lg-showcase::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 40, 47, .70) 0%, rgba(8, 40, 47, .22) 38%, rgba(8, 40, 47, .93) 100%);
}

.lg-brand { display: inline-flex; align-items: center; gap: 13px; width: fit-content; color: #fff; text-decoration: none; }
.lg-brand:hover { color: #fff; text-decoration: none; }
.lg-brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 14px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; backdrop-filter: blur(8px); overflow: hidden;
}
.lg-brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.lg-brand-name { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.lg-brand-caption { display: block; margin-top: 3px; color: rgba(255, 255, 255, .72); font-size: 12px; }

.lg-showcase-content { max-width: 540px; margin: 70px 0 40px; }
.lg-showcase-label {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 99px; background: rgba(255, 255, 255, .1); color: #D6F0EC; font-size: 12px; font-weight: 500; backdrop-filter: blur(6px);
}
.lg-showcase-content h1 {
  margin: 22px 0 16px; color: #fff; font-family: "Fraunces", Georgia, serif; font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 600; line-height: 1.1; letter-spacing: -.02em;
}
.lg-showcase-content h1 span { color: #A9DDD6; }
.lg-showcase-content p { max-width: 440px; margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.8; }

.lg-showcase-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .85); font-size: 13px;
}
.lg-showcase-bottom span { display: inline-flex; align-items: center; gap: 9px; }
.lg-showcase-bottom i { color: #A9DDD6; }

/* ---------- Right: form ---------- */
.lg-side {
  display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; min-height: 100dvh;
  padding: 45px clamp(25px, 5vw, 78px); background: #fff;
}
.lg-box { width: 100%; max-width: 400px; }
.lg-mobile-brand { display: none; margin-bottom: 40px; color: var(--lg-ink); }
.lg-mobile-brand:hover { color: var(--lg-ink); }
.lg-mobile-brand .lg-brand-mark { background: var(--lg-sea); border-color: var(--lg-sea); }
.lg-mobile-brand .lg-brand-name { color: var(--lg-ink); }
.lg-mobile-brand .lg-brand-caption { color: var(--lg-muted); }

.lg-heading { margin-bottom: 30px; }
.lg-heading .lg-overline { display: block; margin-bottom: 10px; color: var(--lg-sea); font-size: 13px; font-weight: 600; }
.lg-heading h2 {
  margin: 0 0 10px; color: var(--lg-ink); font-family: "Fraunces", Georgia, serif; font-size: clamp(30px, 3vw, 38px);
  font-weight: 600; line-height: 1.15; letter-spacing: -.02em;
}
.lg-heading p { margin: 0; color: var(--lg-muted); font-size: 14px; line-height: 1.7; }
.lg-heading p strong { color: var(--lg-ink); }

.lg-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--lg-muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.lg-back:hover { color: var(--lg-sea); }

/* Messages */
.lg-alert { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; padding: 13px 15px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; }
.lg-alert i { margin-top: 2px; }
.lg-alert.is-error { background: var(--lg-danger-soft); color: var(--lg-danger); }
.lg-alert.is-ok { background: var(--lg-ok-soft); color: var(--lg-ok); }
.lg-field-error { margin-top: 7px; color: var(--lg-danger); font-size: 12.5px; }

/* Fields */
.lg-group { margin-bottom: 20px; }
.lg-group label { display: block; margin-bottom: 8px; color: var(--lg-ink); font-size: 13.5px; font-weight: 600; }
.lg-wrap { position: relative; }
.lg-icon { position: absolute; top: 50%; left: 15px; color: #8FA1AD; font-size: 15px; transform: translateY(-50%); pointer-events: none; transition: color .15s; }
.lg-wrap:focus-within .lg-icon { color: var(--lg-sea); }

.lg-input, .lg-side .form-control {
  display: block; box-sizing: border-box; width: 100%; height: 50px; padding: 12px 46px 12px 44px; border: 1px solid #D5DEE3;
  border-radius: 10px; outline: none; background: #fff; color: var(--lg-ink); font-family: inherit; font-size: 15px;
  box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.lg-side .form-control { padding: 12px 14px; }
.lg-input::placeholder, .lg-side .form-control::placeholder { color: #98A8B3; }
.lg-input:hover, .lg-side .form-control:hover { border-color: #B9C7CF; }
.lg-input:focus, .lg-side .form-control:focus { border-color: var(--lg-sea); box-shadow: 0 0 0 4px rgba(15, 91, 102, .14); }
.lg-side .form-control.is-invalid { border-color: var(--lg-danger); }

.lg-toggle {
  position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0;
  border-radius: 8px; background: transparent; color: #8FA1AD; cursor: pointer; transform: translateY(-50%); transition: background .15s, color .15s;
}
.lg-toggle:hover { background: var(--lg-mist); color: var(--lg-ink); }
.lg-toggle:focus-visible { outline: 3px solid rgba(15, 91, 102, .35); }

.lg-capslock { display: none; margin-top: 8px; color: var(--lg-warn); font-size: 12.5px; }
.lg-capslock.is-on { display: block; }

.lg-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: -6px 0 22px; }
.lg-check { display: inline-flex; align-items: center; gap: 8px; color: var(--lg-muted); font-size: 13px; cursor: pointer; }
.lg-check input { width: 16px; height: 16px; accent-color: var(--lg-sea); margin: 0; }
.lg-link { color: var(--lg-sea); font-size: 13px; font-weight: 600; text-decoration: none; }
.lg-link:hover { color: var(--lg-sea-deep); text-decoration: underline; }

.lg-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px 18px;
  border: 1px solid var(--lg-sea); border-radius: 10px; background: var(--lg-sea); color: #fff; font-family: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; text-decoration: none; box-shadow: 0 6px 16px rgba(15, 91, 102, .25);
  transition: background .15s, border-color .15s, transform .15s;
}
.lg-submit:hover:not(:disabled) { background: var(--lg-sea-deep); border-color: var(--lg-sea-deep); color: #fff; transform: translateY(-1px); }
.lg-submit:focus-visible { outline: 3px solid rgba(15, 91, 102, .4); outline-offset: 3px; }
.lg-submit:disabled { opacity: .75; cursor: wait; }
.lg-submit-ghost { background: #fff; color: var(--lg-ink); border-color: #D5DEE3; box-shadow: none; }
.lg-submit-ghost:hover:not(:disabled) { background: var(--lg-mist); border-color: #B9C7CF; color: var(--lg-ink); }

.lg-security { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; color: var(--lg-muted); font-size: 12.5px; line-height: 1.6; text-align: center; }
.lg-security i { color: var(--lg-ok); }

.lg-steps { list-style: none; padding: 0; margin: 0 0 26px; }
.lg-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--lg-line); color: var(--lg-ink); font-size: 14px; }
.lg-steps li span { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--lg-sea-soft); color: var(--lg-sea); font-size: 12px; font-weight: 600; }
.lg-steps li i { color: var(--lg-sea); font-size: 18px; }
.lg-step { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; color: var(--lg-ink); font-size: 13.5px; font-weight: 600; }
.lg-step span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--lg-sea); color: #fff; font-size: 12px; }

.lg-footer { margin-top: 42px; color: #8FA1AD; font-size: 12px; line-height: 1.8; text-align: center; }
.lg-footer strong { color: var(--lg-muted); font-weight: 600; }

@media (max-width: 1000px) {
  .lg-page { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); }
  .lg-showcase { padding: 30px; }
  .lg-side { padding: 35px; }
}
@media (max-width: 767.98px) {
  .lg-page { display: block; }
  .lg-showcase { display: none; }
  .lg-side { min-height: 100vh; min-height: 100dvh; padding: 30px 23px; justify-content: flex-start; }
  .lg-box { max-width: 430px; }
  .lg-mobile-brand { display: flex; }
  .lg-heading { margin-bottom: 26px; }
}
@media (max-width: 380px) {
  .lg-side { padding: 25px 17px; }
  .lg-heading h2 { font-size: 28px; }
  .lg-input, .lg-side .form-control { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-page *, .lg-page *::before, .lg-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Language + theme in the corner ---------- */
.lg-side { position: relative; }
.lg-lang { position: absolute; top: 18px; right: 22px; display: flex; align-items: center; gap: 8px; z-index: 5; }
.lg-lang .pm-lang-btn { border-color: var(--lg-line); color: var(--lg-ink); }
.lg-lang .pm-lang-btn i { color: var(--lg-sea); }

/* ---------- Dark theme ---------- */
html[data-theme="dark"] {
  --lg-ink: #E6EEF2; --lg-sea: #2C9BA6; --lg-sea-deep: #0B3A42; --lg-sea-soft: #12343A; --lg-mist: #15232B;
  --lg-line: #24363F; --lg-muted: #8DA2AE; --lg-ok: #4CC79F; --lg-ok-soft: #123A2F; --lg-danger: #F07167;
  --lg-danger-soft: #3D1A1F; --lg-warn: #E8B04B; --lg-warn-soft: #3A2C12;
}
html[data-theme="dark"] body:has(.lg-page), html[data-theme="dark"] .lg-page, html[data-theme="dark"] .lg-side { background: #0E1A20; }
html[data-theme="dark"] .lg-input, html[data-theme="dark"] .lg-side .form-control,
html[data-theme="dark"] .lg-submit-ghost { background: #15232B; border-color: #2A3F49; color: var(--lg-ink); }
html[data-theme="dark"] .lg-input::placeholder { color: #6E8592; }
html[data-theme="dark"] .lg-mobile-brand, html[data-theme="dark"] .lg-mobile-brand:hover { color: var(--lg-ink); }
@media (max-width: 575px) { .lg-lang { top: 14px; right: 14px; } }
