/* TOC Media sign-in pop-up (login.js). All classes start with "lg-" so they never clash with the page. */
html.lg-open { overflow: hidden; }

.lg-dialog {
  width: calc(100% - 32px); max-width: 420px; max-height: calc(100% - 32px);
  margin: auto; padding: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  background: #16181D; color: var(--film-text, #E4E7EC);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  font: 400 16px/1.6 var(--sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  overflow-y: auto;
}
.lg-dialog[open] { animation: lg-rise .3s cubic-bezier(.2, .7, .2, 1) both; }
.lg-dialog::backdrop { background: rgba(5, 6, 8, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes lg-rise { from { opacity: .4; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.lg-inner { position: relative; padding: 30px 30px 24px; }
.lg-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 6px;
  background: transparent; color: #9EA5B0; cursor: pointer; display: grid; place-items: center;
}
.lg-close:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.lg-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.lg-brand img { width: 28px; height: 28px; }
.lg-brand .lg-toc { font: 700 16px/1 var(--sans, "Inter", -apple-system, Arial, sans-serif); color: #fff; }
.lg-brand .lg-media { font: 700 16px/1 var(--sans, "Inter", -apple-system, Arial, sans-serif); color: #fff; margin-left: 5px; }

.lg-title { margin: 0; font: 400 28px/1.15 var(--serif, "Newsreader", Georgia, serif); color: #fff; text-wrap: balance; }
.lg-lede { margin: 6px 0 20px; color: #9EA5B0; font-size: 14.5px; }
.lg-lede strong { color: #E4E7EC; font-weight: 600; word-break: break-all; }

.lg-form { display: grid; gap: 14px; }
.lg-field { display: grid; gap: 6px; }
.lg-label { color: #9EA5B0; font: 600 13px/1 var(--sans, "Inter", -apple-system, Arial, sans-serif); }
.lg-wrap { position: relative; }
.lg-input {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .18);
  background: #0F1115; color: #fff; font: 400 16px/1 var(--sans, "Inter", Arial, sans-serif);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lg-input::placeholder { color: #565D67; }
.lg-input:focus { outline: none; border-color: #9CC3F0; box-shadow: 0 0 0 2px rgba(156, 195, 240, .2); }
.lg-wrap .lg-input { padding-right: 64px; }
.lg-code { height: 50px; text-align: center; letter-spacing: .45em; padding-left: .45em; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lg-reveal {
  position: absolute; right: 4px; top: 4px; height: 36px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent;
  color: #9CC3F0; cursor: pointer; font: 700 12px/1 var(--cond, "Inter", Arial, sans-serif); letter-spacing: .14em; text-transform: uppercase;
}
.lg-reveal:hover { background: rgba(255, 255, 255, .06); }

.lg-row-end { display: flex; justify-content: flex-end; margin-top: -6px; }
.lg-link { background: none; border: 0; padding: 4px 0; cursor: pointer; color: #9CC3F0; font: 500 14px/1.3 var(--sans, "Inter", Arial, sans-serif); }
.lg-link:hover { color: #C9DEF7; text-decoration: underline; }

.lg-rules { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13.5px; color: #9EA5B0; }
.lg-rules li { display: flex; align-items: center; gap: 7px; }
.lg-rules li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .28); flex: none; }
.lg-rules li.lg-met { color: #A8DDB5; }
.lg-rules li.lg-met::before { background: #A8DDB5; border-color: #A8DDB5; }

.lg-btn {
  height: 48px; width: 100%; margin-top: 6px; border: 0; border-radius: 999px; cursor: pointer;
  background: #2F55C8; color: #fff; font: 600 16px/1 var(--sans, "Inter", Arial, sans-serif);
  transition: background .2s ease;
}
.lg-btn:hover:not(:disabled) { background: #3A63DA; }
.lg-btn:disabled { opacity: .6; cursor: progress; }

.lg-alert { padding: 11px 13px; border-radius: 6px; font-size: 14.5px; line-height: 1.45; }
.lg-alert[hidden] { display: none; }
.lg-error { background: rgba(242, 179, 168, .1); border: 1px solid rgba(242, 179, 168, .35); color: #F2B3A8; }
.lg-info { background: rgba(168, 221, 181, .08); border: 1px solid rgba(168, 221, 181, .3); color: #A8DDB5; }

.lg-switch { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; color: #9EA5B0; font-size: 15px; }
.lg-fine { margin: 12px 0 0; color: #6F7680; font-size: 12.5px; text-align: center; }

.lg-dialog :focus-visible:not(.lg-input) { outline: 2px solid #9CC3F0; outline-offset: 2px; }

@media (max-width: 480px) {
  .lg-inner { padding: 26px 20px 20px; }
  .lg-title { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .lg-dialog[open] { animation: none; } }
/* Account screens: delete */
.lg-btn.lg-danger { background: #C0392B; color: #fff; }
.lg-btn.lg-danger:hover:not(:disabled) { background: #A93226; }
.lg-warn { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: rgba(240, 160, 80, .14); color: #F3C08A; font-size: 14px; line-height: 1.5; }
