/* Sign-in: copied from it-portal-tug assets/css/login.css (the Union Group sign-in). Only the page-wide base rules at the end were left out, so the app's own body background stays. */
/* ── Root ─────────────────────────────────────────── */
.lp-root {
  position: relative;
  min-height: 100dvh;
}

/* ── Background ───────────────────────────────────── */
.lp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #120700;
}
.lp-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Mobile/tablet: heavier warm overlay for readability */
.lp-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    150deg,
    rgba(10, 5, 0, 0.68) 0%,
    rgba(20, 11, 2, 0.50) 55%,
    rgba(12, 6, 1, 0.60) 100%
  );
}

/* ── Desktop blend element ────────────────────────── */
/* Fades the solid left panel smoothly into the hero image */
.lp-blend {
  display: none;
}

/* ── Layout ───────────────────────────────────────── */
.lp-layout {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

/* ── Card - glass on mobile/tablet ────────────────── */
.lp-card {
  width: 100%;
  max-width: 400px;
  background: rgba(14, 7, 1, 0.72);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(201, 168, 76, 0.16);
  border-radius: 20px;
  padding: 2.25rem 1.875rem 1.875rem;
  box-shadow:
    0 32px 96px rgba(0, 0, 0, 0.70),
    0 2px 0 rgba(255, 255, 255, 0.03) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset;
  position: relative;
  overflow: hidden;
}
/* Top edge sheen - catches light like real glass */
.lp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 168, 76, 0.35) 30%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(201, 168, 76, 0.25) 70%,
    transparent 100%
  );
}

.lp-card-body { position: relative; z-index: 1; }

/* ── Brand text ───────────────────────────────────── */
.lp-brand { text-align: center; margin-bottom: 0.25rem; }
.lp-brand-name {
  font-family: var(--font-display);
  color: #C9A84C;
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.lp-logo-wrap { display: flex; justify-content: center; margin: 0 auto 1rem; }
.lp-logo { display: block; width: 190px; height: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45)); }

/* ── Gold divider ─────────────────────────────────── */
.lp-divider {
  height: 1px;
  margin: 1.5rem 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 168, 76, 0.22) 20%,
    rgba(201, 168, 76, 0.45) 50%,
    rgba(201, 168, 76, 0.22) 80%,
    transparent 100%
  );
}

/* ── Error ────────────────────────────────────────── */
.lp-error {
  background: rgba(90, 22, 10, 0.28);
  border: 1px solid rgba(180, 80, 55, 0.22);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.lp-error span {
  font-size: 0.8rem;
  color: #E8937C;
  line-height: 1.5;
}

/* ── Label ────────────────────────────────────────── */
.lp-label {
  display: block;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
  margin-bottom: 0.375rem;
}

/* ── Input ────────────────────────────────────────── */
.lp-input {
  width: 100%; height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.055);
  padding: 0 0.875rem;
  font-size: 0.875rem; color: #fff;
  outline: none; box-sizing: border-box;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  font-family: var(--font-body);
}
.lp-input::placeholder { color: rgba(255, 255, 255, 0.17); }
.lp-input:focus {
  border-color: rgba(201, 168, 76, 0.52);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.09);
}

/* ── Eye toggle ───────────────────────────────────── */
.lp-eye {
  position: absolute; right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: rgba(255, 255, 255, 0.26);
  display: flex; align-items: center; padding: 0;
  transition: color 150ms ease;
}
.lp-eye:hover { color: rgba(255, 255, 255, 0.55); }

/* ── Submit button ────────────────────────────────── */
.lp-btn {
  width: 100%; height: 46px;
  background: linear-gradient(135deg, #D6AB42 0%, #C9A84C 55%, #BA922C 100%);
  color: #160C01;
  border: none; border-radius: 9px;
  font-size: 0.875rem; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  letter-spacing: 0.055em; font-family: var(--font-body);
  transition: all 220ms ease;
  box-shadow:
    0 2px 18px rgba(180, 140, 40, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.lp-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #E2B845 0%, #D4A940 55%, #C49A30 100%);
  box-shadow:
    0 6px 28px rgba(180, 140, 40, 0.48),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transform: translateY(-1px);
}
.lp-btn:active:not(:disabled) {
  transform: translateY(0px);
  box-shadow:
    0 2px 10px rgba(180, 140, 40, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.lp-btn:disabled { opacity: 0.58; cursor: not-allowed; transform: none; }

/* ── Hint ─────────────────────────────────────────── */
.lp-hint {
  margin-top: 1.125rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  text-align: center; line-height: 1.4;
}
.lp-hint span { color: rgba(201, 168, 76, 0.46); }

/* ── Footer ───────────────────────────────────────── */
.lp-footer {
  text-align: center;
  margin-top: 1.625rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.lp-footer p {
  margin: 0 0 0.15rem;
  font-size: 0.615rem;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.05em;
}

/* ── Tablet - more breathing room ─────────────────── */
@media (min-width: 520px) {
  .lp-card {
    max-width: 420px;
    padding: 2.75rem 2.375rem 2.25rem;
    border-radius: 22px;
  }
  .lp-card::before { border-radius: 22px 22px 0 0; }
}

/* ── Desktop - solid left panel + image blend ─────── */
@media (min-width: 1024px) {

  /* Lighter overlay so the right-side hero shines through */
  .lp-bg-overlay {
    background: rgba(8, 4, 0, 0.22);
  }

  /* The blend bar: sits at the right edge of the panel,
     fades the dark #1A1008 into the visible hero image */
  .lp-blend {
    display: block;
    position: fixed;
    left: 448px;
    top: 0; bottom: 0;
    width: 200px;
    background: linear-gradient(
      to right,
      #1A1008 0%,
      rgba(26, 16, 8, 0.55) 40%,
      transparent 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  /* Panel layout */
  .lp-layout {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
  }
  .lp-card {
    width: 448px;
    max-width: none;
    flex-shrink: 0;
    min-height: 100dvh;
    border-radius: 0;
    border: none;
    background: #1A1008;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.75rem;
    overflow-y: auto;
    position: relative;
  }
  .lp-card::before { display: none; }

  .lp-card-body {
    width: 100%;
    max-width: 360px;
  }
  .lp-brand-name { font-size: 1.75rem; }
  .lp-tagline { font-size: 0.9rem; }
  .lp-divider { margin: 1.75rem 0; }

  /* Footer anchored to bottom of panel */
  .lp-footer {
    position: absolute;
    bottom: 1.75rem; left: 0; right: 0;
    margin: 0; padding: 0; border-top: none;
  }
}

/* ── Very small screens ───────────────────────────── */
@media (max-width: 380px) {
  .lp-layout { padding: 1.25rem 1rem; }
  .lp-card {
    padding: 1.875rem 1.375rem 1.625rem;
    border-radius: 16px;
  }
}

/* ── Spin animation ───────────────────────────────── */
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ---- Union Group additions (design brief): Montserrat is wider than the serif it replaces ---- */
.lp-brand-name { font-weight: 600; font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
@media (min-width: 1024px) { .lp-brand-name { font-size: 1.25rem; } }
.lp-form { display: flex; flex-direction: column; gap: 0.875rem; }
.lp-btn-mt { margin-top: 0.5rem; }
.lp-note { background: rgba(201, 168, 76, 0.1); border: 1px solid rgba(201, 168, 76, 0.25); border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.8rem; line-height: 1.5; color: var(--accent-gold-light); }
.lp-error-ico { flex-shrink: 0; margin-top: 1px; }
.lp-btn-ico { flex-shrink: 0; }
.lp-hint-only { margin-top: 1.125rem; }

/* ---- this app ---- */
.lp-root { font-family: var(--font-body); }
h1.lp-brand-name { margin-top: 0; margin-bottom: 0.35rem; }
.lp-root *, .lp-root *::before, .lp-root *::after { box-sizing: border-box; }
#auth-root .lp-error { color: #E8937C; font-size: 0.8rem; line-height: 1.5; }
.lp-check { display: flex; align-items: center; gap: 0.55rem; margin: 0.15rem 0 0; font-size: 0.78rem; font-weight: 500; color: rgba(255, 255, 255, 0.5); cursor: pointer; }
.lp-check input { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--accent-gold); }
.lp-card .pw-wrap { position: relative; }
.lp-card .pw-wrap .lp-input { padding-right: 2.75rem; }
.lp-card .pw-toggle { position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; background: none; border: 0; color: rgba(255, 255, 255, 0.3); display: grid; place-items: center; }
.lp-card .pw-toggle:hover { color: rgba(255, 255, 255, 0.6); background: none; }
.lp-card .lp-input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 40px #2a1c10 inset; }
.lp-input, .lp-input:focus { min-height: 44px; }
