/* Sign-in pages (layouts/guest.blade.php): the home page's farm scene behind
   a card styled like the site's panels. Colors follow the site themes. */

body.los-body.los-guest {
    --scene-sky-a: #7cc8ee;
    --scene-sky-b: #d7f0f7;
    --scene-hill-back: #8cc63f;
    --scene-hill-front: #6fb12f;
    --scene-sun: #fff2a8;
    --scene-barn: #c0392b;
    --scene-roof: #8e2a14;
    --scene-silo: #9aa4ad;
    --scene-flower: #f5d33b;
    background: linear-gradient(180deg, var(--scene-sky-a) 0%, var(--scene-sky-b) 55%, var(--scene-hill-front) 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}
[data-theme="autumn"] body.los-body.los-guest { --scene-sky-a: #f6c98f; --scene-sky-b: #f8e2c2; --scene-hill-back: #c8862f; --scene-hill-front: #9a5a1c; --scene-flower: #e8762b; }
[data-theme="moonlit"] body.los-body.los-guest { --scene-sky-a: #0e1730; --scene-sky-b: #1f2f58; --scene-hill-back: #20452a; --scene-hill-front: #132b18; --scene-sun: #e8eefc; --scene-barn: #6b2a20; --scene-roof: #4a1a10; --scene-silo: #56606b; --scene-flower: #c9d36a; }
[data-theme="dark"] body.los-body.los-guest { --scene-sky-a: #2b2e35; --scene-sky-b: #23262c; --scene-hill-back: #2e3a2a; --scene-hill-front: #1d1f24; --scene-sun: #4a4d55; --scene-barn: #5a2a22; --scene-roof: #3f1d17; --scene-silo: #4a4f57; --scene-flower: #6d6a3a; }
[data-theme="sunflower"] body.los-body.los-guest { --scene-sky-a: #9fd8f2; --scene-sky-b: #fff5c4; --scene-flower: #f2b705; }
[data-theme="blossom"] body.los-body.los-guest { --scene-sky-a: #ffd6e6; --scene-sky-b: #fff5f8; --scene-hill-back: #9fd27a; --scene-hill-front: #7fbf5a; --scene-flower: #f4a7c3; }

.los-guest-scene { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 46vh; min-height: 220px; z-index: 0; pointer-events: none; }
.los-guest-scene svg { width: 100%; height: 100%; display: block; }
.los-guest-scene .sun { fill: var(--scene-sun); }
.los-guest-scene .hill-back { fill: var(--scene-hill-back); }
.los-guest-scene .hill-front { fill: var(--scene-hill-front); }
.los-guest-scene .barn { fill: var(--scene-barn); }
.los-guest-scene .barn-roof { fill: var(--scene-roof); }
.los-guest-scene .barn-door { fill: #fff; opacity: .9; }
.los-guest-scene .barn-x { stroke: var(--scene-barn); stroke-width: 4; fill: none; }
.los-guest-scene .silo { fill: var(--scene-silo); }
.los-guest-scene .flowers { fill: var(--scene-flower); }

.los-guest-wrap {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    padding: 28px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.los-guest-brand a { display: block; border-radius: 50%; }
.los-guest-brand img { display: block; width: 132px; height: 132px; filter: drop-shadow(0 8px 18px rgba(40, 25, 10, .35)); transition: transform .2s ease; }
.los-guest-brand a:hover img { transform: scale(1.04) rotate(-2deg); }

.los-guest-card {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(40, 25, 10, .28);
    outline: none;
}
.los-guest-card-head {
    background: linear-gradient(180deg, var(--head-from), var(--head-to));
    color: var(--head-text);
    padding: 14px 22px;
    text-align: center;
}
.los-guest-card-head h1 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.los-guest-card-body { padding: 22px; }
.los-guest-lead { margin: 0 0 18px; text-align: center; color: var(--muted); }

/* Sign-in buttons: big, full width, 48px tall (comfortable to tap). */
.los-guest .los-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease, transform .1s ease;
}
.los-guest .los-signin-btn:hover { filter: brightness(1.07); text-decoration: none; }
.los-guest .los-signin-btn:active { transform: translateY(1px); }
.los-guest .los-signin-btn svg { width: 22px; height: 22px; flex: none; }
.los-guest .los-signin-discord, .los-guest .los-signin-discord:hover { background: #5865f2; color: #fff; box-shadow: 0 3px 0 #3c45a5; }
.los-guest .los-signin-github, .los-guest .los-signin-github:hover { background: #24292f; color: #fff; box-shadow: 0 3px 0 #0d1117; }
.los-guest .los-signin-gold { background: linear-gradient(180deg, #ffd65a, var(--gold)); color: var(--gold-text); box-shadow: 0 3px 0 var(--gold-dark); }
.los-guest .los-signin-gold:hover { color: var(--gold-text); }
.los-guest .los-signin-note { margin: 6px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* Visible focus for keyboard users, on every theme. */
.los-guest a:focus-visible, .los-guest button:focus-visible, .los-guest summary:focus-visible, .los-guest input:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 8px;
}

.los-guest-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: .85rem; }
.los-guest-divider::before, .los-guest-divider::after { content: ""; flex: 1; height: 1px; background: var(--row-border); }

.los-guest-email > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    background: var(--surface-alt);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}
.los-guest-email > summary::-webkit-details-marker { display: none; }
.los-guest-email > summary::after { content: "▾"; font-size: .8em; transition: transform .15s ease; }
.los-guest-email[open] > summary::after { transform: rotate(180deg); }
.los-guest-email > summary:hover { border-color: var(--border); }
.los-guest-email-form { margin-top: 16px; display: grid; gap: 14px; }
.los-guest-email-form .los-input { width: 100%; box-sizing: border-box; min-height: 44px; font-size: 16px; }
.los-guest-hint { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }

.los-guest-password { position: relative; }
.los-guest-password .los-input { padding-right: 64px; }
.los-guest-password button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--link);
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}
.los-guest-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.los-guest-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: .9rem; cursor: pointer; }
.los-guest-check input { width: 18px; height: 18px; accent-color: var(--accent); }

.los-guest-status { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--online-bg); color: var(--online); font-weight: 600; font-size: .9rem; }
.los-guest .los-field-errors { margin: 6px 0 0; padding: 0; list-style: none; color: #b42318; font-size: .85rem; font-weight: 600; }
[data-theme="moonlit"] .los-guest .los-field-errors, [data-theme="dark"] .los-guest .los-field-errors { color: #ff8a80; }

.los-guest-after {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--row-border);
    text-align: center;
    font-size: .95rem;
    box-shadow: var(--shadow);
}
.los-guest-after a { font-weight: 700; }

.los-guest-footer { text-align: center; }
.los-guest-footer .los-notice-compact { margin: 0 auto 8px; }
.los-guest-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: .82rem; }
.los-guest-footer nav a { color: var(--text); opacity: .85; padding: 4px 2px; }
[data-theme="moonlit"] .los-guest-footer nav a, [data-theme="dark"] .los-guest-footer nav a { color: var(--text); }

.los-skip-link { position: absolute; left: 12px; top: -48px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 700; }
.los-skip-link:focus { top: 12px; }

@media (max-width: 480px) {
    .los-guest-wrap { justify-content: flex-start; padding-top: 20px; gap: 14px; }
    .los-guest-brand img { width: 96px; height: 96px; }
    .los-guest-card-body { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .los-guest *, .los-guest *::before, .los-guest *::after { transition: none !important; }
}

/* The sign-up form's bot trap: off screen for people, still in the form. */
.los-guest-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.los-guest-check span { line-height: 1.4; }
