/* login.css -- sign in and sign up (pages/login.mjs) after the «Горн» board «Вход · Горн»: the site's panel with a
 * graph sketch on the left, the form on the right; on a phone the form alone. Over portal.css (.seg). */

.lg-page { padding-top: 32px; padding-bottom: 64px; }
.lg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 600px; overflow: hidden; border-radius: 22px; }

/* ---------------------------------------------------------------- the panel */
.lg-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background-color: var(--f-surface-3);
    background-image: radial-gradient(var(--f-surface-4) 1px, transparent 1px);
    background-size: 20px 20px;
}
.lg-sketch { position: absolute; top: 48px; right: 40px; left: 40px; height: 240px; }
.lg-wires { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--f-accent-2); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lg-wires path { vector-effect: non-scaling-stroke; }
.lg-node {
    position: absolute;
    width: 38%;
    padding: 10px 12px;
    border-radius: 10px;
    background-color: var(--f-surface-5);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgb(0 0 0 / 30%);
}
.lg-node.is-event { background-color: var(--f-accent-2); color: var(--f-on-accent); }
.lg-node.is-picked { box-shadow: inset 0 0 0 1px var(--f-spark), 0 10px 24px rgb(0 0 0 / 30%); }
.lg-brand-text { position: relative; display: flex; flex-direction: column; gap: 14px; }
.lg-brand-title { margin: 0; font-family: var(--f-font-display); font-size: 34px; font-weight: 800; line-height: 1.15; }
.lg-brand-lead { max-width: 460px; margin: 0; color: var(--f-fg-2); font-size: 17px; line-height: 1.55; }

/* ---------------------------------------------------------------- the form */
.lg-card { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px; background-color: var(--f-surface-2); }
.lg-switch { align-self: flex-start; background-color: var(--f-surface-1); }
.lg-switch .seg-btn { min-height: 38px; padding: 0 16px; }
.lg-title { margin: 0; font-family: var(--f-font-display); font-size: 30px; font-weight: 800; line-height: 1.15; }
.lg-lead { margin: -6px 0 0; color: var(--f-fg-2); }
.lg-stack { display: flex; flex-direction: column; gap: 16px; }
.lg-field { display: flex; flex-direction: column; gap: 8px; }
.lg-label { font-size: 14px; font-weight: 600; }
.lg-hint { color: var(--f-fg-3); font-size: 13px; }
.lg-checks { display: flex; flex-direction: column; gap: 10px; }
.lg-check { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; color: var(--f-fg-2); font-size: 14px; line-height: 1.45; cursor: pointer; }
.lg-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--f-accent); cursor: pointer; }
.lg-check a { color: var(--f-accent); }
.lg-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background-color: var(--f-surface-3);
    color: var(--f-fg);
    font: inherit;
    font-size: 15px;
    transition: box-shadow 0.15s ease, background-color 0.15s ease;
}
.lg-input:hover { background-color: var(--f-surface-4); }
.lg-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--f-accent-2); }
.lg-error { margin: 0; padding: 10px 12px; border-radius: 10px; background-color: rgb(255 90 95 / 10%); color: #ffb3b5; font-size: 14px; }
.lg-submit {
    height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 14px;
    background-color: var(--f-accent-2);
    color: var(--f-on-accent);
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.15s ease;
}
.lg-submit:hover { filter: brightness(1.1); }
.lg-submit:focus-visible { outline: 2px solid var(--f-spark); outline-offset: 2px; }
.lg-other { margin: 0; color: var(--f-fg-3); font-size: 14px; }
.lg-link-quiet { color: var(--f-accent); font-weight: 700; }
.lg-link-quiet:hover { opacity: 1; color: var(--f-spark); }
.lg-note { margin: 0; padding-top: 14px; border-top: 1px solid var(--f-surface-4); color: var(--f-fg-3); font-size: 13px; line-height: 1.5; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 900px) {
    .lg-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .lg-brand { display: none; }
    .lg-card { width: 100%; max-width: 480px; margin: 0 auto; border-radius: 22px; }
}

/* a phone's browser zooms the page into a field whose text is under 16px (Safari on iPhone) -- so 16px there */
@media (pointer: coarse) {
    .lg-input { font-size: 16px; }
}

@media (max-width: 760px) {
    .lg-page { padding-top: 16px; }
    .lg-card { padding: 24px 20px; }
    .lg-title { font-size: 24px; }
}

/* ---------------------------------------------------------------- the invitations' links (pages/invites.mjs): the one
 * just made has its «Копировать ссылку» filled, the older ones are outlined */
.inv-actions { display: flex; gap: 8px; }
.inv-btn {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--f-surface-6);
    border-radius: 12px;
    background: transparent;
    color: var(--f-fg);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, filter 0.15s ease;
}
.inv-btn[hidden] { display: none; }
.inv-btn[data-copy] { flex-grow: 1.4; }
.inv-btn:hover { border-color: var(--f-accent-2); }
.is-fresh .inv-btn[data-copy] { border-color: var(--f-accent-2); background-color: var(--f-accent-2); color: var(--f-on-accent); }
.is-fresh .inv-btn[data-copy]:hover { filter: brightness(1.1); }
.inv-btn:focus-visible { outline: 2px solid var(--f-spark); outline-offset: 2px; }
.inv-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inv-icon-done,
.inv-btn.is-copied .inv-icon-copy { display: none; }
.inv-btn.is-copied .inv-icon-done { display: block; }
@media (max-width: 760px) {
    .inv-btn { padding: 0 10px; font-size: 14px; }
}
/* both words do not fit a phone's card: «Отправить» is its icon alone (the share sign phones know) */
@media (max-width: 480px) {
    .inv-btn[data-share] { flex: 0 0 44px; padding: 0; }
    .inv-btn[data-share] span { display: none; }
}
/* the invitation's letter (account_mail.mjs invite): under a link when it went and «Отправить ещё раз», a text button;
 * after a POST, what came of it -- calm when sent, the accent's warning when not */
.inv-mailed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; color: var(--f-fg-3); font-size: 13px; line-height: 1.5; }
.inv-again { padding: 0; border: 0; background: none; color: var(--f-accent-2); font: inherit; font-weight: 700; cursor: pointer; }
.inv-again:hover { text-decoration: underline; }
.inv-again:focus-visible { outline: 2px solid var(--f-spark); outline-offset: 2px; border-radius: 4px; }
.inv-status { margin: 0; color: var(--f-fg-2); font-size: 14px; line-height: 1.5; }
.inv-status.is-warn { color: var(--f-accent-2); }
.inv-issued { max-width: 640px; margin: 16px auto 0; border-radius: 22px; }
.inv-issued-title { margin: 0; font-family: var(--f-font-display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.inv-list { margin: 0; padding: 0; list-style: none; }

/* Reserve the widget's height while Yandex loads; fit the form on narrow phones. */
.lg-captcha { min-width: 0; }
#auth-captcha { min-height: 100px; width: 100%; }
.lg-captcha .lg-hint { margin: 8px 0 0; }
