/* =============================================================
   EZText — access-code login page
   Built on Alt Data Partners tokens + shares mila.css (nav, btn)
   ============================================================= */

.lg-main {
  min-height: calc(100vh - 56px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-10) var(--s-6);
}

.lg-panel {
  width: 100%; max-width: 460px;
  display: flex; flex-direction: column; gap: var(--s-6);
}

/* ------- Header ---------------------------------------------- */
.lg-head { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.lg-lock {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--mila-accent-soft); color: var(--mila-accent);
  display: flex; align-items: center; justify-content: center;
}
.lg-lock svg { width: 22px; height: 22px; }
.lg-eyebrow {
  font-family: var(--font-mono); font-size: var(--t-12); font-weight: 600;
  letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--fg-subtle);
}
.lg-title {
  font-family: var(--font-display); font-size: var(--t-28); font-weight: 700;
  letter-spacing: var(--tr-tight); line-height: var(--lh-tight); color: var(--fg-strong);
}
.lg-sub { font-size: var(--t-15); line-height: var(--lh-base); color: var(--fg-muted); }

/* ------- Card ------------------------------------------------ */
.lg-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-5);
  box-shadow: var(--shadow-xs);
}

.lg-field-block { display: flex; flex-direction: column; gap: 7px; }
.lg-label-row { display: flex; align-items: center; gap: 2px; }
.lg-label {
  font-size: var(--t-13); font-weight: 600; color: var(--fg-strong);
}

/* help tip + bubble */
.lg-tip {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: none; color: var(--fg-subtle); font-size: 10px; font-weight: 700; line-height: 1;
  font-family: var(--font-sans); cursor: help; margin-left: 5px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.lg-tip:hover, .lg-tip:focus { color: var(--mila-accent); border-color: var(--mila-accent); outline: none; }
.lg-bubble {
  position: absolute; bottom: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 268px; max-width: 72vw; background: var(--ink-900); color: var(--ink-50);
  font-size: 12.5px; font-weight: 400; line-height: 1.5; letter-spacing: 0;
  text-transform: none; text-align: left;
  padding: 11px 13px; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; z-index: 6;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.lg-bubble strong { color: #fff; font-weight: 700; }
.lg-bubble::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--ink-900);
}
.lg-tip:hover .lg-bubble, .lg-tip:focus .lg-bubble { opacity: 1; transform: translateX(-50%); }

/* code input with show/hide */
.lg-input-wrap { position: relative; display: flex; }
.lg-input {
  flex: 1; width: 100%; height: 50px;
  font-family: var(--font-mono); font-size: var(--t-16); letter-spacing: 0.06em;
  color: var(--fg); background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0 46px 0 14px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.lg-input::placeholder { color: var(--fg-subtle); letter-spacing: 0.04em; font-size: var(--t-14); }
.lg-input:hover { border-color: var(--border-strong); }
.lg-input:focus { outline: none; border-color: var(--mila-accent); box-shadow: var(--ring-focus); }
.lg-input.lg-err-state { border-color: var(--bear-500); background: var(--bear-50); }

.lg-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-subtle); border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.lg-eye:hover { color: var(--fg-strong); background: var(--ink-100); }
.lg-eye svg { width: 18px; height: 18px; }

.lg-error { font-size: var(--t-13); color: var(--bear-600); min-height: 16px; }

.lg-submit { width: 100%; height: 48px; justify-content: center; font-size: var(--t-15); }

/* ------- Security warning ------------------------------------ */
.lg-warn {
  display: flex; gap: 11px;
  background: var(--bear-50); border: 1px solid var(--bear-100);
  border-radius: var(--r-md); padding: 12px 14px;
}
.lg-warn-mark {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bear-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.lg-warn-mark svg { width: 14px; height: 14px; }
.lg-warn-body { font-size: var(--t-13); line-height: 1.5; color: var(--ink-800); }
.lg-warn-body strong { font-weight: 700; color: var(--bear-700); }

/* ------- Foot note ------------------------------------------- */
.lg-help-line {
  font-size: var(--t-13); color: var(--fg-muted); text-align: center;
}
.lg-help-line a { color: var(--mila-accent); text-decoration: none; font-weight: 600; }
.lg-help-line a:hover { text-decoration: underline; }

/* ------- Recover-access form --------------------------------- */
.lg-form { display: flex; flex-direction: column; gap: var(--s-5); }
.lg-text-input,
.lg-textarea {
  width: 100%; font-family: var(--font-sans); font-size: var(--t-15); color: var(--fg);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.lg-text-input { height: 48px; padding: 0 14px; }
.lg-textarea { padding: 11px 14px; min-height: 104px; resize: vertical; line-height: var(--lh-base); }
.lg-text-input::placeholder,
.lg-textarea::placeholder { color: var(--fg-subtle); }
.lg-text-input:hover,
.lg-textarea:hover { border-color: var(--border-strong); }
.lg-text-input:focus,
.lg-textarea:focus { outline: none; border-color: var(--mila-accent); box-shadow: var(--ring-focus); }
.lg-text-input.lg-err-state,
.lg-textarea.lg-err-state { border-color: var(--bear-500); background: var(--bear-50); }

.lg-hint {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: var(--t-13); line-height: 1.5; color: var(--fg-muted);
  background: var(--bg-sunken); border-radius: var(--r-md); padding: 10px 12px;
}
.lg-hint svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--fg-subtle); }

/* confirmation state that replaces the form contents */
.lg-confirm {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--s-3); padding: var(--s-4) var(--s-2);
  animation: lg-confirm-in 0.34s var(--ease-out) both;
}
@keyframes lg-confirm-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lg-confirm-mark {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bull-50); color: var(--bull-600);
  display: flex; align-items: center; justify-content: center;
}
.lg-confirm-mark svg { width: 26px; height: 26px; }
.lg-confirm-title {
  font-family: var(--font-display); font-size: var(--t-20); font-weight: 700;
  color: var(--fg-strong); letter-spacing: var(--tr-tight);
}
.lg-confirm-body { font-size: var(--t-14); line-height: 1.55; color: var(--fg-muted); max-width: 320px; }
