/* Public index decoration is intentionally isolated from the global stylesheet. */
body.auth-landing #auth-welcome {
    isolation: isolate;
    background: linear-gradient(135deg, #f8fbff 0%, #edf4fc 52%, #f1faf7 100%);
}

body.auth-landing #auth-welcome::before,
body.auth-landing #auth-welcome::after {
    content: none;
}

html[data-theme="dark"] body.auth-landing #auth-welcome,
body.dark-theme.auth-landing #auth-welcome {
    background: linear-gradient(135deg, #101a28 0%, #17263a 52%, #142c2c 100%);
}

body.auth-landing .auth-welcome-section {
    border-color: color-mix(in srgb, var(--border-card) 78%, #7592b8 22%);
    background: color-mix(in srgb, var(--surface-bg) 68%, transparent);
    box-shadow: none;
}

body.auth-landing .auth-welcome-section-nutrition,
body.auth-landing .auth-welcome-section-training {
    background: color-mix(in srgb, var(--surface-bg) 68%, transparent);
}

body.auth-landing .auth-welcome-section-title {
    border-color: color-mix(in srgb, var(--border-card) 72%, #7895b9 28%);
    background: var(--surface-bg);
    color: var(--text-main);
    box-shadow: 0 2px 7px rgba(38, 64, 96, .08);
}

body.auth-landing .auth-welcome-point,
body.auth-landing .auth-welcome-section-nutrition .auth-welcome-point-all {
    border-color: color-mix(in srgb, var(--border-card) 84%, #7895b9 16%);
    background: color-mix(in srgb, var(--surface-bg) 66%, transparent);
    box-shadow: 0 3px 10px rgba(38, 64, 96, .07);
}

body.auth-landing .auth-welcome-point h3,
body.auth-landing .auth-welcome-point li,
body.auth-landing .auth-welcome-point-all li {
    color: var(--text-main);
}

body.auth-landing .auth-demo-entry {
    position: relative;
    display: grid;
    margin: 16px 4px 2px;
    padding: 10px 12px 8px;
    border: 1px solid color-mix(in srgb, var(--border-card) 76%, #6e91ba 24%);
    border-radius: 11px;
    background: color-mix(in srgb, var(--surface-soft) 66%, transparent);
}

body.auth-landing .auth-demo-entry > strong {
    position: absolute;
    top: 0;
    left: 12px;
    padding: 3px 11px;
    border: 1px solid color-mix(in srgb, var(--border-card) 72%, #7895b9 28%);
    border-radius: 999px;
    background: var(--surface-bg);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.2;
    transform: translateY(-55%);
}

body.auth-landing .auth-demo-actions,
body.auth-landing .auth-training-demo-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 2px;
}

body.auth-landing .auth-demo-actions button,
body.auth-landing .auth-training-demo-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid color-mix(in srgb, var(--border-card) 70%, #668bb8 30%);
    border-radius: 9px;
    background: color-mix(in srgb, var(--surface-bg) 68%, transparent);
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

body.auth-landing .auth-demo-actions button:hover,
body.auth-landing .auth-training-demo-actions button:hover,
body.auth-landing .auth-demo-actions button:focus-visible,
body.auth-landing .auth-training-demo-actions button:focus-visible {
    border-color: var(--action-primary-bg);
    background: color-mix(in srgb, var(--action-primary-bg) 12%, var(--surface-bg) 88%);
}

body.auth-landing .auth-demo-actions button:active,
body.auth-landing .auth-training-demo-actions button:active {
    background: color-mix(in srgb, var(--action-primary-bg) 20%, var(--surface-bg) 80%);
    transform: translateY(1px);
}

body.auth-landing .auth-demo-actions img,
body.auth-landing .auth-training-demo-actions img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

body.auth-landing .auth-welcome-nutrition-guest-link,
body.auth-landing .auth-welcome-training-guest-link {
    margin: 10px 0 2px;
    text-align: center;
}

body.auth-landing .auth-welcome-nutrition-guest-link a,
body.auth-landing .auth-welcome-training-guest-link a {
    color: var(--link-color, var(--action-primary-bg));
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

html[data-theme="dark"] body.auth-landing .auth-welcome-section,
html[data-theme="dark"] body.auth-landing .auth-welcome-section-nutrition,
html[data-theme="dark"] body.auth-landing .auth-welcome-section-training,
body.dark-theme.auth-landing .auth-welcome-section,
body.dark-theme.auth-landing .auth-welcome-section-nutrition,
body.dark-theme.auth-landing .auth-welcome-section-training {
    border-color: #33465d;
    background: color-mix(in srgb, #152233 68%, transparent);
}

html[data-theme="dark"] body.auth-landing .auth-welcome-point,
html[data-theme="dark"] body.auth-landing .auth-welcome-section-nutrition .auth-welcome-point-all,
body.dark-theme.auth-landing .auth-welcome-point,
body.dark-theme.auth-landing .auth-welcome-section-nutrition .auth-welcome-point-all {
    border-color: #35485f;
    background: color-mix(in srgb, #111c2a 66%, transparent);
    box-shadow: none;
}

html[data-theme="dark"] body.auth-landing .auth-demo-entry,
body.dark-theme.auth-landing .auth-demo-entry {
    border-color: #385069;
    background: color-mix(in srgb, #182638 66%, transparent);
}

html[data-theme="dark"] body.auth-landing .auth-demo-actions button,
html[data-theme="dark"] body.auth-landing .auth-training-demo-actions button,
body.dark-theme.auth-landing .auth-demo-actions button,
body.dark-theme.auth-landing .auth-training-demo-actions button {
    border-color: #405873;
    background: color-mix(in srgb, #111d2b 68%, transparent);
}

html[data-theme="dark"] body.auth-landing .auth-demo-entry > strong,
body.dark-theme.auth-landing .auth-demo-entry > strong {
    border-color: #385069;
    background: #111c2a;
}

@media (max-width: 680px) {
    body.auth-landing .auth-demo-actions,
    body.auth-landing .auth-training-demo-actions {
        grid-template-columns: 1fr;
    }
}
