/* Login / registration — Church Center–style split (form left narrow, splash right wide).
   Form pane: super-light grey (not ink-black). Loaded from _LoginLayout / brand samples. */

body.login-page {
    margin: 0;
    /* site.css reserves --app-footer-h for the fixed footer; auth pages hide that
       footer, so the reserve becomes a blank strip + spurious vertical scrollbar. */
    padding-bottom: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f4f5f6;
}

/* Hide the shared site footer on auth pages (Church Center has no chrome footer). */
body.login-page > .app-footer,
body.login-page .app-footer {
    display: none !important;
}

.login-navbar .navbar-brand {
    float: none;
    margin: 0 auto;
}

.login-navbar .logo-image {
    max-height: 48px;
    width: auto;
}

.login-split {
    display: grid;
    grid-template-columns: minmax(18rem, 38%) minmax(0, 62%);
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

.login-split__pane--form {
    background: #f7f8f9;
    color: #212529;
    display: flex;
    flex-direction: column;
    /* Form block centers in the space above the legal row (auto margins). */
    justify-content: flex-start;
    padding: 2.5rem 2.25rem 3rem;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.login-split__form-inner {
    width: 100%;
    max-width: 22rem;
    margin: auto auto;
}

/* PCO-style muted legal links — bottom of form pane, toward the splash seam. */
.login-split__legal {
    flex-shrink: 0;
    margin-top: 1.5rem;
    text-align: right;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #6c757d;
}

.login-split__legal a {
    color: #6c757d;
    text-decoration: none;
}

.login-split__legal a:hover,
.login-split__legal a:focus {
    color: #495057;
    text-decoration: underline;
}

.login-split__legal-sep {
    margin: 0 0.4em;
    color: #adb5bd;
}

.login-split__brand {
    margin-bottom: 2rem;
}

.login-split__logo {
    max-height: 2.75rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.login-split__logo + .login-split__brand-name {
    display: block;
    margin-top: 0.75rem;
}

.login-split__brand-name {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    color: #212529;
}

.login-split__heading {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.5rem;
    color: #111111;
}

.login-split__body {
    /* Form content lives here; no grey card. */
}

.login-split__pane--visual {
    background-color: #e9ecef;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 100%;
}

/* Form typography / controls on the light pane */
#login-box h4,
.login-split__body h4 {
    color: #212529;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
}

.login-form-lede,
.login-otp-channel,
.login-split__body .text-muted,
.login-split__body p.login-form-lede {
    color: #6c757d !important;
    text-align: left;
}

.login-split__body .form-label,
.login-split__body label {
    color: #495057;
    font-size: 0.8rem;
    font-weight: 500;
}

.login-split__body .form-control,
.login-split__body .form-select {
    background: #fff;
    border: 1px solid #ced4da;
    color: #212529;
    margin-bottom: 0.5rem;
}

.login-split__body .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.login-split__body .form-check-label {
    color: #495057;
}

.login-split__body a {
    color: #0d6efd;
}

.login-split__body a:hover {
    color: #0a58ca;
}

.login-split__body hr {
    border-color: rgba(0, 0, 0, 0.1);
}

.login-split__body .alert {
    text-align: left;
}

.login-form-secondary {
    font-size: 0.9rem;
    text-align: left;
}

.login-otp-digit-row {
    display: flex;
    gap: 0.45rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin: 0.75rem 0 0.5rem;
}

.login-otp-digit {
    width: 2.5rem;
    height: 3rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    border: 2px solid #adb5bd;
    border-radius: 0.35rem;
    background: #fff;
    color: #212529;
    padding: 0;
}

.login-otp-digit:focus {
    border-color: #0d6efd;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#login-timeout-timer {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6c757d;
    text-align: left;
}

.k-checkbox-label:empty {
    display: none;
}

.login-page .section-heading {
    display: none; /* title lives in .login-split__heading */
}

#login-box .register-submit {
    margin-top: 1rem;
}

/* Primary submit CTAs use Bootstrap .btn-primary (adjace.css #337ab7). */
.login-split__body .btn.btn-primary {
    width: 100%;
    box-sizing: border-box;
}

/* Outline buttons were painted for the dark pane; on light they need a dark edge. */
.login-split__body .btn-outline-light {
    color: #212529;
    border-color: #adb5bd;
    background: transparent;
}

.login-split__body .btn-outline-light:hover {
    color: #fff;
    background: #495057;
    border-color: #495057;
}

/* Brand-editor sample: keep the split readable inside the preview pane. */
#brandSampleSection .login-split {
    min-height: 28rem;
}

#brandSampleSection .login-split__pane--form {
    padding: 1.5rem 1.25rem;
}

/* Phone: form only — hide splash so no empty image column.
   Keep min-height (not height/overflow:hidden) so tall forms + keyboard can scroll. */
@media (max-width: 767.98px) {
    .login-split {
        grid-template-columns: 1fr;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .login-split__pane--form {
        padding: 1.75rem 1.25rem 2rem;
        min-height: 100vh;
        min-height: 100dvh;
        border-right: none;
    }

    .login-split__pane--visual {
        display: none;
    }

    .login-split__form-inner {
        max-width: none;
    }

    .login-split__heading {
        font-size: 1.65rem;
    }

    .login-otp-digit {
        width: 2.25rem;
        height: 2.75rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .login-otp-digit-row {
        gap: 0.3rem;
    }

    .login-otp-digit {
        width: 2.05rem;
        height: 2.55rem;
        font-size: 1.15rem;
    }
}
