/* Login screen — standalone layout, independent of the admin stylesheet */
html {
    height: -webkit-fill-available; /* Prevent mobile webkit browsers from dropping footer behind the navigation bar */
}

body.login-page {
    --login-ink: #101d33;
    --login-ink-soft: #64748b;
    --login-border: rgba(16, 29, 51, 0.12);
    --login-radius: 18px;

    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: radial-gradient(1200px 600px at 12% -10%, #e8eef7 0%, #f4f6fa 45%, #eef1f6 100%);
    color: var(--login-ink);
}

.login-main {
    padding: 2rem 1rem;
}

.login-shell {
    display: grid;
    grid-template-columns: 44% 56%;
    width: 100%;
    max-width: 940px;
    min-height: 520px;
    overflow: hidden;
    background-color: #fff;
    border-radius: var(--login-radius);
}

/* Brand panel */
.login-shell > * {
    min-width: 0; /* Let the grid tracks shrink below their content width */
}

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.75rem 2.5rem;
    color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(155deg, #0e1b30 0%, #1b3555 52%, #24567f 100%);
    overflow: hidden;
}

.login-brand::before,
.login-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-brand::before {
    top: -90px;
    right: -70px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
}

.login-brand::after {
    bottom: -110px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(90, 190, 220, 0.22) 0%, rgba(90, 190, 220, 0) 70%);
}

.login-brand-body {
    position: relative;
}

.login-brand-mark {
    margin-bottom: 1.75rem;
}

.brand-logo {
    width: 64px;
    height: 64px;
}

.company-logo {
    max-width: 100%;
    max-height: 96px;
    object-fit: contain;
    /* White outline keeps uploaded logos legible on the dark panel */
    filter: drop-shadow(1px 0 0 rgba(255, 255, 255, 0.6)) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6)) drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.6)) drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.6));
}

.login-brand-eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.login-brand-title {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.login-brand-tagline {
    max-width: min(22rem, 100%);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.login-brand-points {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    line-height: 1.5;
}

.login-brand-points li {
    position: relative;
    padding-left: 1.5rem;
}

.login-brand-points li + li {
    margin-top: 0.65rem;
}

.login-brand-points li::before {
    content: "";
    position: absolute;
    top: 0.45em;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.55);
}

.login-brand-link {
    position: relative;
    align-self: flex-start;
    margin-top: 2.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.login-brand-link:hover,
.login-brand-link:focus {
    color: #fff;
    text-decoration: underline;
}

/* Form panel */
.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.75rem 3rem;
}

.login-panel-head {
    margin-bottom: 1.75rem;
}

.login-panel-title {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.login-panel-subtitle {
    margin: 0;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--login-ink-soft);
}

.login-form > * + * {
    margin-top: 1rem;
}

.login-panel .form-control,
.login-panel .input-group-text {
    border-color: var(--login-border);
}

.login-panel .form-control {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    background-color: #f8fafc;
}

.login-panel .input-group .form-control {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.login-panel .form-control:focus {
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(36, 86, 127, 0.15);
}

.login-panel .form-floating > label {
    color: var(--login-ink-soft);
}

.login-panel .form-floating:focus-within,
.login-panel .input-group:focus-within {
    z-index: 2;
}

.login-password {
    position: relative;
}

.login-password .form-control {
    padding-right: 3rem;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    color: var(--login-ink-soft);
    background: none;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    color: var(--login-ink);
    background-color: rgba(16, 29, 51, 0.06);
}

.login-password-toggle.is-revealed {
    color: var(--login-ink);
}

.login-submit {
    margin-top: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.login-panel .alert {
    font-size: 0.875rem;
}

.login-panel-foot {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--login-border);
    font-size: 0.8125rem;
    color: var(--login-ink-soft);
}

.login-panel-foot a {
    font-weight: 600;
    color: var(--login-ink);
    text-decoration: none;
}

.login-panel-foot a:hover,
.login-panel-foot a:focus {
    text-decoration: underline;
}

.login-footer {
    flex-shrink: 0;
    padding: 0 1rem 1.75rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--login-ink-soft);
}

.login-footer a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover,
.login-footer a:focus {
    text-decoration: underline;
}

.bi {
    height: 1em;
}

/* Mobile / tablet */
@media (max-width: 767.98px) {
    .login-main {
        padding: 1.25rem 0.75rem;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-brand {
        padding: 2rem 1.75rem;
    }

    .login-brand-points,
    .login-brand-link {
        display: none;
    }

    .login-brand-tagline {
        margin-bottom: 0;
    }

    .login-brand-mark {
        margin-bottom: 1.25rem;
    }

    .company-logo {
        max-height: 72px;
    }

    .login-panel {
        padding: 2rem 1.75rem;
    }
}

/* Large displays */
@media (min-width: 2560px) {
    .login-shell {
        max-width: 1180px;
        min-height: 640px;
    }
}

@media (max-width: 359.98px) {
    .g-recaptcha {
        overflow-x: auto; /* Makes sure reCAPTCHA is usable on the smallest screens */
        min-height: 86px;
    }
}
