/* Login page (Vuexy auth-login-cover) — project overrides
   Core layout comes from vuexy-core.css + page-auth.css. */

:root,
[data-bs-theme="light"] {
    --bs-body-font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bs-body-bg);
}

/* Tenant brand in the top corner of the cover */
.auth-cover-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    max-width: calc(100% - 3rem);
    text-decoration: none;
}

.auth-cover-brand .app-brand-logo img {
    display: block;
    width: auto;
    max-height: 34px;
    max-width: 160px;
    object-fit: contain;
}

.auth-cover-brand .app-brand-text {
    font-size: 1.25rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Keep the split layout full height on short screens */
.authentication-wrapper.authentication-cover .authentication-inner {
    min-block-size: 100vh;
}

/* The form column is fixed at 400px by the theme; let it shrink on phones */
.authentication-cover .w-px-400,
.authentication-cover .w-px-500 {
    max-inline-size: 100%;
}

@media (max-width: 575.98px) {
    .authentication-cover .auth-cover-brand .app-brand-text {
        font-size: 1rem;
    }

    .authentication-cover .auth-cover-brand .app-brand-logo img {
        max-height: 28px;
        max-width: 110px;
    }
}

/* Login column */
.authentication-cover .authentication-bg {
    box-shadow: -1px 0 0 rgba(47, 43, 61, 0.06);
}

/* Vuexy draws the focus ring on .input-group::before, an absolutely positioned
   layer that paints above non-positioned children. Without this it swallows
   clicks meant for the password toggle icon. */
.authentication-wrapper .input-group::before {
    pointer-events: none;
}

/* Password visibility toggle */
#toggle-password,
[data-toggle-password] {
    position: relative;
    z-index: 1;
    color: var(--bs-secondary-color);
    line-height: 1;
}

#toggle-password:hover,
[data-toggle-password]:hover {
    color: var(--bs-primary);
}

/* Back to login link below the auth form */
.auth-back-link {
    color: var(--bs-primary);
    font-weight: 500;
    text-decoration: none;
}

.auth-back-link:hover {
    text-decoration: underline;
}

.auth-back-link .bi {
    font-size: 1rem;
    line-height: 1;
}

[dir="rtl"] .auth-back-link .bi {
    transform: scaleX(-1);
}

/* Read-only fields (reset password: account email) */
.authentication-cover .authentication-bg .form-control[readonly] {
    background-color: var(--bs-secondary-bg);
}

/* Server-side alerts use the theme's alert colours */
#formAuthentication ~ .alert,
.authentication-bg .alert {
    font-size: 0.9375rem;
}

@media (max-width: 1199.98px) {
    .authentication-cover .authentication-bg {
        box-shadow: none;
    }
}
