/* Shared login styling, scoped to cards enhanced by login-ui.js. */
.mahara-login-page .main-content { padding-top: 0; padding-bottom: 0; }
.mahara-login-page #main { padding-top: .5rem; padding-bottom: .5rem; }
.mahara-login-page #main h1 {
    margin-top: 0;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    font-size: 1.75rem;
}
.login-card.mahara-login-panel {
    flex: 0 1 100%;
    max-width: 640px;
    margin: .5rem auto .5rem;
}
.mahara-login-card {
    border: 1px solid #dce4ee;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(28, 49, 76, .09);
}
.mahara-login-card > .card-header {
    padding: .8rem 1.25rem;
    border: 0;
    border-bottom: 1px solid #e6edf5;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(120deg, #f0f5fc, #fafcff);
    color: #203d60;
    font-size: 1.35rem;
    font-weight: 700;
}
.mahara-login-card > .card-body { padding: 1rem 1.25rem; }
.mahara-login-card .mahara-login-form .form-group {
    padding: 0;
    margin-bottom: .7rem;
    border: 0;
}
.mahara-login-form label {
    margin-bottom: .25rem;
    font-size: .95rem;
    font-weight: 600;
}
.mahara-login-form input[name="login_username"],
.mahara-login-form input[name="login_password"] {
    width: 100%;
    max-width: none;
    min-height: 42px;
    padding: .5rem .75rem;
    border: 1px solid #b8c7d9;
    border-radius: 9px;
    background: #fff;
    color: #172f4c;
    font-size: 1rem;
    transition: border-color .15s, box-shadow .15s;
}
.mahara-login-form input[name="login_username"]:focus,
.mahara-login-form input[name="login_password"]:focus {
    border-color: #326aa6;
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(50, 106, 166, .18);
}
.mahara-login-password { position: relative; }
.mahara-login-form .mahara-login-password input { padding-right: 3.25rem; }
.mahara-login-eye {
    position: absolute;
    top: 50%;
    right: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #465f7c;
    cursor: pointer;
    transform: translateY(-50%);
}
.mahara-login-eye:hover { background: #edf3fa; color: #1e4e85; }
.mahara-login-eye:focus-visible { outline: 2px solid #326aa6; outline-offset: -3px; }
.mahara-login-eye svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mahara-login-eye-slash { display: none; }
.mahara-login-eye.is-visible .mahara-login-eye-slash { display: block; }
.mahara-login-card .mahara-login-form .form-group.submit { padding-top: .25rem; }
.mahara-login-form input[type="submit"] {
    min-height: 42px;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 600;
}
.mahara-login-form .login-related-links { margin: 0; line-height: 1.5; }
.mahara-login-form .login-related-links a { text-underline-offset: 3px; }
.mahara-login-form .captcha { max-width: 100%; overflow: visible; }
.mahara-login-form .g-recaptcha {
    max-width: 100%;
    overflow: hidden;
}
.mahara-login-form .g-recaptcha > div:first-child {
    transform: scale(var(--mahara-captcha-scale, 1));
    transform-origin: top left;
}
.mahara-login-form .captcha > label,
.mahara-login-form .captcha > .pseudolabel { display: none; }
/* The widget already supplies its instruction; avoid a second paragraph below it. */
.mahara-login-form .captcha .description { display: none; }
@media (max-width: 575px) {
    .login-card.mahara-login-panel { margin-top: .25rem; }
    .mahara-login-card > .card-header { padding: .75rem; }
    .mahara-login-card > .card-body { padding: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mahara-login-form input { transition: none; }
}
