/* =========================================================================================
   Sign-in pages (_BaseLayout): login, MFA, forgot / reset password, register, logout, etc.

   They follow the Inspinia theme like the admin pages: the page background is the theme's own
   (--theme-body-bg via app.min.css), the form sits on a normal theme .card, and buttons, links and
   inputs are plain theme components. config.js is loaded in <head>, so a user's saved light/dark
   choice and skin apply here too; with nothing saved it is the default light theme.

   This replaced the old dark animated "hero" (vanta.js canvas, glass card, forced white text,
   SmartAdmin's purple). Only layout and the light/dark logo switch live here -- no colours, so
   nothing here can go unreadable on a skin or scheme.
   ========================================================================================= */

/* Full-height centred column, as the template's .auth-box. The top padding keeps the card clear of
   the fixed top bar (logo + links). */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
}

/* The sign-in card: the template's auth card radius. */
.login-card {
    border-radius: 15px;
}

/* Top bar logo. The <a class="navbar-brand"> is 125px wide; Inspinia does not cap images at their
   container, so without this the logo renders at its natural (very large) size. */
.auth-page .navbar-brand img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Colour wordmark on the light theme, white wordmark on the dark theme -- the same rule the
   template's .auth-brand uses, for our own top bar. */
.auth-logo-light {
    display: none !important;
}

html[data-bs-theme="dark"] .auth-logo-light {
    display: block !important;
}

html[data-bs-theme="dark"] .auth-logo-dark {
    display: none !important;
}

/* Links. The theme links in its primary colour, which on the default skin (#1ab394) measured
   2.65:1 on the white card ("Forgot Password?") and 2.37:1 on the page background (the top bar's
   "Secure Login" / "Register", the footer's "Privacy"). Mixed 40% toward the body colour they keep
   the skin's hue and clear 4.5:1 on both surfaces, and lighten in dark mode. Scoped to the sign-in
   pages, which every app's users see. .btn-link takes it through the button's own property. */
.auth-page a:not(.btn) {
    color: color-mix(in srgb, var(--theme-primary) 40%, var(--theme-body-color));
}

.auth-page .btn-link {
    --theme-btn-color: color-mix(in srgb, var(--theme-primary) 40%, var(--theme-body-color));
    --theme-btn-hover-color: var(--theme-body-color);
}

/* "or" divider between the form and the secondary links. */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: "";
    border-bottom: 1px solid var(--theme-border-color);
    position: absolute;
    top: 50%;
    width: 45%;
}

.divider::before {
    right: 55%;
}

.divider::after {
    left: 55%;
}

/* SmartAdmin utilities a few of these pages still use. */
@media (max-width: 575.98px) {
    .hidden-sm-down {
        display: none !important;
    }
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

.help-block {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
}

/* Footer below the card. Inspinia's own .footer is built for the admin layout (negative side
   margins inside .content-page), so the sign-in footer has its own class. */
.auth-footer {
    /* Mixed toward the body colour (the raw token is 2.46:1). 30% rather than .text-muted's 45%:
       the footer sits on the page background, not a white card, and needs the extra step. */
    color: color-mix(in srgb, var(--theme-secondary-color) 30%, var(--theme-body-color));
    font-size: 0.8125rem;
    padding: 0.75rem 0;
    text-align: center;
}
