/* Sign-in page (Views/Account/Login). The brand side keeps the original MamMoD theme from mammy.css;
   this file adds the form card on the right and keeps the mascot still. Colours follow theme.css. */
.mammy-login-page .mammy-hero { animation: none !important; }
/* The greeting bubble is a little wider so the headline fits on one line, with a tail pointing down at the mascot. */
.mammy-login-page .mammy-speech { position: relative; max-width: 560px; }
.mammy-login-page .mammy-speech::after {
    content: ""; position: absolute; right: 22%; bottom: -16px; width: 32px; height: 32px;
    background: #fff; border-radius: 0 0 6px 0; transform: rotate(45deg);
}
@media (max-width: 767px) { .mammy-login-page .mammy-speech::after { display: none; } }

/* Wide screens: the mascot beside the work tiles, about a third of the panel. Tablet and phone keep mammy.css sizes. */
@media (min-width: 1200px) {
    .mammy-login-page .mammy-hero { width: clamp(260px, 19vw, 340px); justify-self: end; margin-inline-end: 0; }
}

/* Form card */
.mm-login-card {
    --login-heading: #123358;
    --login-primary: #2867b3;
    --login-primary-hover: #205591;
    --login-muted: #6c7786;
    --login-line: #e0e4e9;
    width: 100%; max-width: 440px; padding: 40px 40px 32px; border: 1px solid var(--login-line); border-radius: 14px;
    background: #fff; box-shadow: 0 12px 32px rgba(16, 34, 58, .08);
}
.mm-login-logo { display: block; width: 220px; height: auto; margin: 0 auto 28px; }
.mm-login-card h2 { margin: 0 0 6px; font-size: 26px; font-weight: 700; color: var(--login-heading); }
.mm-login-subtitle { margin: 0 0 28px; color: var(--login-muted); }
.mm-login-card .form-label { font-weight: 600; color: var(--login-heading); }
.mm-login-card .form-control:focus { border-color: #6d98ce; box-shadow: 0 0 0 .2rem rgba(40, 103, 179, .18); }
.mm-login-submit { width: 100%; border: 0; color: #fff; font-weight: 600; background: var(--login-primary); }
.mm-login-submit:hover, .mm-login-submit:focus { color: #fff; background: var(--login-primary-hover); }
.mm-login-help { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--login-muted); }
/* Password with a show/hide button inside the field, and the Caps Lock warning under it. */
.mm-login-password { position: relative; }
.mm-login-password .form-control { padding-right: 52px; }
.mm-login-reveal {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px;
    background: transparent; color: var(--login-muted); cursor: pointer;
}
.mm-login-reveal:hover, .mm-login-reveal:focus-visible { background: #eef2f7; color: var(--login-heading); outline: none; }
.mm-login-reveal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mm-login-reveal .mm-eye-closed, .mm-login-reveal[aria-pressed="true"] .mm-eye-open { display: none; }
.mm-login-reveal[aria-pressed="true"] .mm-eye-closed { display: block; }
.mm-login-caps { margin-top: 6px; font-size: 13px; font-weight: 600; color: #b45309; }
.mm-login-card .alert:empty, .mm-login-card .validation-summary-valid { display: none; }

@media (max-width: 900px) {
    .mm-login-card { padding: 28px 24px; }
}
