/* Card-style auth pages (Login / Register) */
.mg-auth-card {
    width: 100%;
    max-width: 500px;
    background: #fff url('/CaptchaAssets/login-bg.png') no-repeat bottom center / 100% auto;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    padding: 20px 20px 50px; /* bottom space keeps content clear of the background art */
    font-size: 14px;
    line-height: 1.6;
    color: #111;
    font-family: 'Noto Sans', system-ui, Arial, sans-serif;
    position: relative;
    z-index: 1; /* sits above the #main_content decorative blobs from guest.css */
}

.mg-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.3;
    text-align:center;
}

.mg-sub {
    font-size: 13px;
    margin: 0 0 22px;
    color: #222;
}

/* Field with label sitting on the top border */
.mg-field {
    position: relative;
    margin-bottom: 20px;
}

.mg-field > label {
    position: absolute;
    top: -10px;
    left: 14px;
    padding: 0 6px;
    background: #fff;
    font-size: 14px;
    line-height: 20px;
    margin: 0;
    z-index: 1;
}

.mg-input {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid #bdbdbd;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    outline: none;
}

.mg-input:focus {
    border-color: #26407f;
    box-shadow: 0 0 0 2px rgba(38, 64, 127, .15);
}

.mg-field .text-danger,
.mg-field .field-validation-error {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.mg-link-row {
    display: flex;
    justify-content: flex-end;
    margin: -12px 0 16px;
    font-size: 13px;
}

/* Captcha row */
.mg-captcha {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    justify-content:center;
}

.mg-captcha img {
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
}

.mg-captcha .btncp-refresh {
    cursor: pointer;
    color: #26407f;
}

.mg-captcha .mg-input {
    flex: 1;
    min-width: 0;
}

/* Pill button */
/*.mg-btn {
    display: block;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #26407f;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}*/


.mg-btn {
    margin-top:30px !important;    
    display: block;
    width: 180px;
    height: 40px;
    margin: 0 auto;
    border: 0;
    border-radius: 999px;
    background: #26407f;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.mg-btn:hover:not(:disabled) { background: #1d3366; }
.mg-btn:disabled { opacity: .55; cursor: not-allowed; }

/*.mg-note {
    font-size: 12.5px;
    font-weight: 600;
    margin: 14px 0 22px;
}*/

.mg-note {
    font-size: 12.5px;
    font-weight: 600;
    margin: 14px 0 22px;
    text-align: center;
    color: #1e3d73 !important;
}

.mg-note.mg-note-danger { color: #b00020; font-weight: 400; margin: -8px 0 18px; }

/* Terms box */
.mg-terms {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
    padding: 14px 16px;
    font-size: 13px;
    margin-bottom: 16px;
}

.mg-terms a { color: #1a0dd6; text-decoration: none; }
.mg-terms a:hover { text-decoration: underline; }

/*.mg-switch {
    display: block;
    text-align: center;
    font-size: 13px;
    margin-top: 6px;
}*/
.mg-switch {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: #243b7d; /* match your Register button; pick the exact value with the DevTools eyedropper */
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .mg-switch:hover {
        color: #14224d;
    }

    .mg-switch:focus-visible {
        outline: 2px solid #243b7d;
        outline-offset: 3px;
        border-radius: 2px;
    }

.mg-verified {
    display: none;
    position: absolute;
    right: 12px;
    top: 13px;
    color: green;
}

@media (max-width: 480px) {
    .mg-auth-card { padding: 28px 22px 150px; }
}
