/* The bundled app.css owns the primary/surface palette used by auth views. */
.guest-layout {
    margin: 0;
    min-width: 320px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.guest-auth {
    background: #f8fafc;
    color: #0f172a;
}

.guest-auth .auth-shell {
    min-height: 100vh;
    min-height: 100svh;
}

.guest-auth input:not([type="checkbox"]) {
    background: #fff;
    color: #0f172a;
}

.guest-auth input::placeholder,
.guest-auth .text-surface-400 {
    color: #64748b;
    opacity: 1;
}

.guest-auth label[for="terms"] { font-size: 12px; line-height: 1.6; }
.guest-auth #terms { width: 16px; height: 16px; accent-color: #4f46e5; }

.guest-layout :is(a, button, input):focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 3px;
}

.guest-auth button[type="submit"],
.guest-auth a[href$="/auth/google.php"] {
    min-height: 44px;
    align-items: center;
}

.guest-error {
    background: #08090d;
    color: #f0f2f5;
}

.guest-error > div:first-of-type {
    min-height: 100vh;
    min-height: 100svh;
}

.guest-error > div:first-of-type > div { width: 100%; max-width: 448px; }
.guest-error .error-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    border: 1px solid #6366f14d;
    border-radius: 24px;
    background: #6366f11a;
    color: #a5b4fc;
}
.guest-error .error-badge span { font-size: 28px; font-weight: 900; }
.guest-error p { color: #94a3b8; font-size: 13px; line-height: 1.7; }

.guest-error a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #f8fafc;
}

.guest-error a:first-child {
    border-color: #4f46e5;
    background: #4f46e5;
}

.guest-layout .cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: auto;
    width: min(420px, calc(100vw - 32px));
    z-index: 50;
}

.guest-layout .cookie-consent-panel {
    border: 1px solid #334155;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: 0 16px 48px #0f172a33;
    border-radius: 16px;
    padding: 20px;
}

.guest-layout .cookie-consent-panel > div { display: flex; align-items: flex-start; gap: 14px; }
.guest-layout .cookie-consent-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    height: 36px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #1e293b;
}
.guest-layout .cookie-consent-copy { flex: 1; min-width: 0; }
.guest-layout .cookie-consent-panel h2 { margin: 0; font-size: 14px; line-height: 1.4; color: #f8fafc; }
.guest-layout .cookie-consent-panel p { margin: 4px 0 0; color: #cbd5e1; font-size: 12px; line-height: 1.6; }
.guest-layout .cookie-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.guest-layout .cookie-consent-actions button { flex-shrink: 0; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.guest-layout .cookie-consent-actions a { margin-left: 0; font-size: 11px; line-height: 1.4; }
.guest-layout .cookie-consent-panel a { color: #c7d2fe; }
.guest-layout .cookie-consent-accept { background: #4f46e5; color: #fff; }
.guest-layout .cookie-consent-essential { background: #1e293b; color: #e2e8f0; border-color: #475569; }

/* The homepage notice occupies its own space so it never covers the demo. */
.guest-layout .cookie-consent-inline {
    position: relative;
    inset: auto;
    width: auto;
    padding: 12px 24px;
    background: #08090d;
    z-index: 1;
}
.guest-layout .cookie-consent-inline .cookie-consent-panel {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 16px;
    box-shadow: none;
}
.guest-layout .cookie-consent-inline .cookie-consent-panel > div { align-items: center; }
.guest-layout .cookie-consent-inline .cookie-consent-copy {
    display: flex;
    align-items: center;
    gap: 24px;
}
.guest-layout .cookie-consent-inline .cookie-consent-message { flex: 1; }
.guest-layout .cookie-consent-inline .cookie-consent-actions { flex-shrink: 0; margin-top: 0; }

@media (max-width: 767px) {
    .guest-layout .cookie-consent-inline { padding: 12px 16px; }
    .guest-layout .cookie-consent-inline .cookie-consent-panel > div { align-items: flex-start; }
    .guest-layout .cookie-consent-inline .cookie-consent-copy { flex-direction: column; align-items: stretch; gap: 12px; }
}

@media (max-width: 639px) {
    .guest-auth input:not([type="checkbox"]) { font-size: 16px; }
    .guest-layout .cookie-consent:not(.cookie-consent-inline) { right: 16px; bottom: 16px; }
}
