/* =========================================================================
   TokenSmith adaptation of the Mazer auth pages.

   Mazer ships auth.css (vendored, minified, alongside this file). That file is
   left untouched so a theme refresh can overwrite it; everything TokenSmith
   changes lives here and is linked after it by _AuthLayout.cshtml.

   Two things are being adapted rather than copied:

   1. Scale. Mazer sizes the auth screen like a marketing page — a 4rem
      headline over 1.7rem body copy, on 8rem of horizontal padding. This is
      the front door to a back office, so the type comes down to something a
      form can sit under without shouting.

   2. Height. auth.css pins #auth to 100vh with overflow hidden, which is fine
      for its four-field demo and clips the registration form on a laptop.
      Here the panel is min-height instead, so a long form scrolls.
   ========================================================================= */

#auth {
    height: auto;
    min-height: 100vh;
    background: #fff;
}

    #auth > .row {
        min-height: 100vh;
    }

    #auth #auth-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
        padding: 2.5rem 4.5rem;
    }

    #auth #auth-left .auth-logo {
        margin-bottom: 1.5rem;
    }

        #auth #auth-left .auth-logo img {
            height: auto;
            max-height: 56px;
            width: auto;
        }

    #auth #auth-left .auth-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #25396f;
        margin-bottom: .5rem;
    }

    #auth #auth-left .auth-subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
        color: #7c8db5;
    }

/* The illustration panel. The gradient is the fallback the image sits on, so a
   missing or slow background never leaves a white half-screen. */
#auth #auth-right {
    background: url(../../images/bg/4853433.jpg) center / cover no-repeat,
                linear-gradient(90deg, #2d499d, #3f5491);
    display: flex;
    align-items: flex-end;
    padding: 4rem;
}

.ts-auth-blurb {
    color: #fff;
    max-width: 32rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

    .ts-auth-blurb h2 {
        font-size: 1.75rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: .5rem;
    }

    .ts-auth-blurb p {
        font-size: 1rem;
        color: rgba(255, 255, 255, .85);
        margin-bottom: 0;
    }

/* ---- Form chrome ------------------------------------------------------- */

/* Mazer's demo markup has no labels — placeholders alone. Labels stay here for
   the screen-reader and autofill benefit, sized down so they read as captions
   above the xl inputs rather than competing with them. */
#auth .form-label {
    font-size: .875rem;
    font-weight: 600;
    color: #25396f;
    margin-bottom: .35rem;
}

#auth .form-control-xl {
    border-radius: .6rem;
}

#auth .form-check-label {
    font-size: .95rem;
}

/* Validation messages sit directly under an xl input, which is tall enough that
   the default spacing reads as unattached. */
#auth .text-danger {
    display: inline-block;
    font-size: .85rem;
    margin-top: .35rem;
}

#auth .alert {
    border-radius: .6rem;
    font-size: .95rem;
}

#auth .ts-auth-links {
    font-size: 1rem;
}

    #auth .ts-auth-links a {
        font-weight: 700;
    }

#auth .ts-auth-footer {
    margin-top: 2rem;
    font-size: .8rem;
    color: #a8aebb;
}

/* ---- Responsive -------------------------------------------------------- */

/* Below lg the illustration panel is gone and auth-left is the whole page, so
   the padding that framed a 5-column panel becomes a waste of a phone screen.
   auth.css only handles <=767px, and leaves a cramped 8rem inset in the gap
   between that and the 992px breakpoint where the right panel disappears. */
@media screen and (max-width: 991.98px) {
    #auth #auth-left {
        padding: 3rem 2.5rem;
        max-width: 34rem;
        margin: 0 auto;
    }
}

@media screen and (max-width: 575.98px) {
    #auth #auth-left {
        padding: 2.5rem 1.5rem;
    }

    #auth #auth-left .auth-title {
        font-size: 2rem;
    }
}
