/* styles of the guest frame (themes/modern/views/layouts/guest.php): the menu on top, a pale photo behind a centred card, the footer below */

/* no strip is kept free for the scrollbar here (the frame of a signed in user keeps one): the photo reaches the edge of the window */
:root {
    scrollbar-gutter: auto;
}

.guest-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* the photo, blurred and slightly enlarged so its blurred edges stay outside the window */
.guest-page::before,
.guest-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
}
.guest-page::before {
    background: #37475a url("../images/guest-background.jpg") center 85% / cover;
    filter: blur(4px);
    transform: scale(1.1);
}
/* the page colour, see-through over the photo */
.guest-page::after {
    background-color: rgba(255, 255, 255, 0.65);
}
[data-bs-theme="dark"] .guest-page::after {
    background-color: rgba(48, 56, 65, 0.65);
}

.guest-main {
    display: flex;
    flex: 1;
    padding: 1rem;
}

/* the card is a little see-through, so the photo shows faintly through it; the fields in it keep their solid background */
.guest-card {
    --tblr-card-bg: color-mix(in srgb, var(--tblr-bg-surface) 85%, transparent);
    width: 100%;
    max-width: 35rem;
    margin: auto;
}
.guest-card-wide {
    max-width: 60rem;
}

.guest-logo {
    width: 220px;
    max-width: 100%;
    margin: 0 auto 0.75rem;
}

.guest-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0 1rem 1rem;
}

/* buttons, fields and notices in the card are a step less rounded than the theme makes them; the card keeps its own corners */
.guest-card .card-body {
    --tblr-border-radius: var(--tblr-border-radius-sm);
    --tblr-btn-input-border-radius: var(--tblr-border-radius-sm);
}

/* the eye that shows or hides a password is as big as an action icon of a grid */
.password-toggle .ti {
    font-size: 1.5rem;
}

/* the menu item of the open page is written in the accent colour, as its line is drawn */
.guest-page .navbar .nav-item.active,
.guest-page .navbar .nav-item.active > .nav-link {
    color: var(--tblr-primary);
}

/* the button a guest form is sent with is filled, the other buttons of the theme are outlined */
.guest-card .btn.guest-main-button {
    --tblr-btn-color: var(--tblr-btn-variant-fg);
    --tblr-btn-bg: var(--tblr-btn-variant);
    --tblr-btn-hover-bg: var(--tblr-btn-variant-darken);
    --tblr-btn-hover-border-color: var(--tblr-btn-variant-darken);
}

/* the captcha picture stands in a frame like a field; under the mouse a glow around it shows the picture can be clicked */
.guest-captcha-picture {
    box-sizing: content-box;
    flex: none;
    border: var(--tblr-border-width) solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    cursor: pointer;
    transition: box-shadow 0.15s;
}
.guest-captcha-picture:hover {
    box-shadow: 0 0 0 0.2rem rgba(var(--tblr-primary-rgb), 0.2);
}

/* the message of a field that is not filled in right ends at the right edge of the field */
.guest-card .invalid-feedback {
    text-align: right;
}

/* a note under the form is grey, a little stronger than the secondary text of the theme, in the light and the dark look alike */
.guest-note {
    color: color-mix(in srgb, var(--tblr-secondary) 50%, var(--tblr-body-color));
}
