@import url("/user/assets/loader-theme.css?v=20260825-1");
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* MZ App warm light application background. */
html,
body,
.login-page {
    background: #fbf7f3 !important;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #fbf7f3;
    color: #111827;
}

body {
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    background: none;
}

a {
    text-decoration: none;
}

/* =========================
   PAGE
========================= */

.login-page {
    width: 100%;
    min-height: 100svh;
    max-width: 520px;
    margin: 0 auto;
    padding: 18px 30px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================
   HEADER
========================= */

.login-header {
    position: relative;
    padding-top: 2px;
}

.back-button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    color: #0b1738;
    margin-bottom: 18px;
}

.back-button span {
    font-size: 34px;
    line-height: 1;
    font-weight: 300;
}

.header-text h1 {
    font-size: 34px;
    line-height: 1.05;
    font-weight: 750;
    letter-spacing: -1.2px;
    color: #0b1738;
}

.header-text h1 span {
    color: #1474e9;
}

.header-text p {
    margin-top: 12px;
    color: #59657b;
    font-size: 17px;
    line-height: 1.45;
}

/* =========================
   CONTENT
========================= */

.login-content {
    flex: 0 0 auto;
    padding-top: 26px;
}

#loginForm {
    width: 100%;
}

/* =========================
   INPUT BOX
========================= */

.input-box {
    width: 100%;
    height: 72px;
    border: 1px solid #e0e4eb;
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.025);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-box + .input-box {
    margin-top: 13px;
}

.input-box:focus-within {
    border-color: #c8ced8;
    box-shadow: none;
}

.input-box input:-webkit-autofill,
.input-box input:-webkit-autofill:hover,
.input-box input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: currentColor !important;
    transition: background-color 9999s ease-out 0s;
}
.input-box input::selection {
    background: rgba(120, 120, 120, 0.18);
    color: inherit;
}

.input-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 13px;
    background: #f2f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.input-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #1474e9;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-box input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    color: #172033;
    background: transparent;
    font-size: 16px;
}

.input-box input::placeholder {
    color: #7a8495;
    opacity: 1;
}

.password-toggle {
    width: 34px;
    height: 40px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0b1738;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================
   FORGOT PASSWORD
========================= */

.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.forgot-row a {
    color: #086be4;
    font-size: 15px;
    font-weight: 600;
}

/* =========================
   REMEMBER ME
========================= */

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #667085;
    font-size: 15px;
    cursor: pointer;
}

.remember-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-check {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: #1474e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-check span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.remember-row input:not(:checked) + .custom-check {
    background: #ffffff;
    border: 1.5px solid #c7ced9;
}

.remember-row input:not(:checked) + .custom-check span {
    display: none;
}

/* =========================
   MESSAGE
========================= */

.form-message {
    display: none !important;
    min-height: 0;
    margin-top: 6px;
    text-align: center;
    font-size: 13px;
    color: #c62828;
}

.form-message.success {
    color: #159447;
}

/* =========================
   LOGIN BUTTON
========================= */

.login-button {
    width: 100%;
    height: 62px;
    margin-top: 7px;
    border-radius: 17px;
    background: linear-gradient(135deg, #1474ed, #0867df);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(20, 116, 237, 0.17);
}

.login-button span {
    font-size: 22px;
    font-weight: 700;
}

.login-button strong {
    position: absolute;
    right: 25px;
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
}

.login-button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* =========================
   DIVIDER
========================= */

.divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 12px 0;
}

.divider span {
    height: 1px;
    background: #e1e4e9;
    flex: 1;
}

.divider em {
    color: #697386;
    font-size: 14px;
    font-style: normal;
}

/* =========================
   SOCIAL
========================= */

.social-button {
    width: 100%;
    height: 51px;
    border: 1px solid #e1e4ea;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #465169;
    background: #ffffff;
    font-size: 15px;
    cursor: pointer;
}

.social-button + .social-button {
    margin-top: 9px;
}

.google-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex: 0 0 22px;
}
.google-button {
    position: relative;
    border-color: #d7dbe2;
    font-weight: 750;
    color: #202632;
    box-shadow: 0 3px 10px rgba(17, 24, 39, 0.05);
    transition:
        border-color 0.18s,
        box-shadow 0.18s,
        transform 0.18s;
}
.google-button:hover,
.google-button:focus-visible {
    border-color: #aeb7c4;
    box-shadow: 0 5px 16px rgba(17, 24, 39, 0.09);
    outline: 0;
}
.google-button:active {
    transform: scale(0.99);
}

.apple-icon {
    color: #111827;
    font-size: 19px;
}

/* =========================
   BOTTOM LINKS
========================= */

.bottom-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    color: #313b4d;
    font-size: 14px;
}

.bottom-link a {
    color: #096ce3;
    font-weight: 650;
}

.help-link {
    margin-top: 9px;
    padding-bottom: 2px;
}

/* =========================
   LOADING OVERLAY
========================= */

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-overlay[hidden] {
    display: none;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mz-loader {
    width: 54px;
    height: 54px;
    position: relative;
    animation: loaderRotate 1s linear infinite;
}

.mz-loader span {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dbeeff;
    left: 50%;
    top: 50%;
    transform-origin: 0 0;
}

.mz-loader span:nth-child(1) {
    transform: rotate(0deg) translate(23px);
    background: #126ee8;
}

.mz-loader span:nth-child(2) {
    transform: rotate(36deg) translate(23px);
    background: #1a7ff0;
}

.mz-loader span:nth-child(3) {
    transform: rotate(72deg) translate(23px);
    background: #3198f4;
}

.mz-loader span:nth-child(4) {
    transform: rotate(108deg) translate(23px);
    background: #63b2f7;
}

.mz-loader span:nth-child(5) {
    transform: rotate(144deg) translate(23px);
    background: #a9d6fb;
}

.mz-loader span:nth-child(6) {
    transform: rotate(180deg) translate(23px);
    background: #d7ecfd;
}

.mz-loader span:nth-child(7) {
    transform: rotate(216deg) translate(23px);
    background: #e4f3ff;
}

.mz-loader span:nth-child(8) {
    transform: rotate(252deg) translate(23px);
    background: #d4ebfc;
}

.mz-loader span:nth-child(9) {
    transform: rotate(288deg) translate(23px);
    background: #9bcff9;
}

.mz-loader span:nth-child(10) {
    transform: rotate(324deg) translate(23px);
    background: #4aa2f4;
}

@keyframes loaderRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading-title {
    margin-top: 13px;
    color: #0b1738;
    font-size: 17px;
    font-weight: 700;
}

.loading-subtitle {
    margin-top: 4px;
    color: #697386;
    font-size: 13px;
}

/* =========================
   SUCCESS
========================= */

.success-message {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-message[hidden] {
    display: none;
}

.success-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #1474e9;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.success-inner h2 {
    margin-top: 18px;
    font-size: 25px;
    color: #0b1738;
}

.success-inner p {
    margin-top: 7px;
    color: #697386;
    font-size: 14px;
}

/* =========================
   SHORT ANDROID SCREENS
========================= */

@media (max-height: 760px) {
    .login-page {
        padding: 12px 26px 8px;
    }

    .back-button {
        margin-bottom: 10px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    .header-text p {
        margin-top: 7px;
        font-size: 15px;
    }

    .login-content {
        padding-top: 17px;
    }

    .input-box {
        height: 62px;
        border-radius: 16px;
    }

    .input-box + .input-box {
        margin-top: 9px;
    }

    .input-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 11px;
        margin-right: 10px;
    }

    .input-box input {
        font-size: 14px;
    }

    .forgot-row {
        margin-top: 6px;
    }

    .remember-row {
        margin-top: 7px;
    }

    .login-button {
        height: 55px;
        margin-top: 4px;
    }

    .login-button span {
        font-size: 20px;
    }

    .divider {
        margin: 8px 0;
    }

    .social-button {
        height: 45px;
    }

    .bottom-link {
        margin-top: 8px;
        font-size: 13px;
    }

    .help-link {
        margin-top: 5px;
    }
}

/* Very short screens */

@media (max-height: 650px) {
    .login-page {
        padding-left: 22px;
        padding-right: 22px;
    }

    .header-text h1 {
        font-size: 27px;
    }

    .header-text p {
        font-size: 14px;
    }

    .login-content {
        padding-top: 12px;
    }

    .input-box {
        height: 56px;
    }

    .input-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .input-icon svg {
        width: 18px;
        height: 18px;
    }

    .input-box input {
        font-size: 13px;
    }

    .login-button {
        height: 50px;
    }

    .social-button {
        height: 41px;
        font-size: 13px;
    }

    .bottom-link {
        font-size: 12px;
    }
}

/* Approved authentication palette. */
html,
body,
.auth-page {
    background: #fbf8f4 !important;
}
.login-button,
.primary-button,
.message-card button {
    background: #171e28 !important;
    color: #fff !important;
    border-color: #171e28 !important;
}
.login-button:hover,
.primary-button:hover {
    background: #202a36 !important;
}
a,
.accent {
    color: #171e28 !important;
}

/* MZAPP approved neutral palette — actual login selectors. */
:root {
    --primary: #171e28;
    --blue: #171e28;
    --accent: #171e28;
}
.header-text h1 span,
.header-text h1 em {
    color: #171e28 !important;
}
.input-icon {
    background: #f0f1f2 !important;
    color: #171e28 !important;
}
.input-icon svg {
    color: #171e28 !important;
    stroke: #171e28 !important;
}
.input-box:focus-within {
    border-color: #171e28 !important;
    box-shadow: 0 0 0 3px rgba(23, 30, 40, 0.08) !important;
}
.login-button,
.popup-button,
.success-popup button {
    background: #171e28 !important;
    color: #fff !important;
    border-color: #171e28 !important;
}
.mz-loader span {
    background: #171e28 !important;
}

.mz-loader {
    width: 64px !important;
    height: 64px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: transparent url("/user/api/content/app-logo.php?theme=light") center/contain no-repeat !important;
    animation: mzIconPulse 1.05s ease-in-out infinite !important;
}
.mz-loader span {
    display: none !important;
}
@keyframes mzIconPulse {
    0%,
    100% {
        opacity: 0.38;
        transform: scale(0.88);
    }
    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .login-page {
    background: #0c1117 !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .header-text h1,
html[data-theme="dark"] .header-text p,
html[data-theme="dark"] .remember-row,
html[data-theme="dark"] .bottom-link {
    color: #f8fafc !important;
}
html[data-theme="dark"] .header-text h1 span,
html[data-theme="dark"] a {
    color: #fff !important;
}
html[data-theme="dark"] .back-button,
html[data-theme="dark"] .password-toggle {
    color: #f8fafc !important;
}
html[data-theme="dark"] .input-box,
html[data-theme="dark"] .social-button {
    background: #171e28 !important;
    border-color: #354153 !important;
    color: #fff !important;
}
html[data-theme="dark"] .input-box input {
    color: #fff !important;
    background: transparent !important;
}
html[data-theme="dark"] .input-box input::placeholder {
    color: #aeb7c5 !important;
}
html[data-theme="dark"] .input-icon {
    background: #232d3a !important;
    color: #fff !important;
}
html[data-theme="dark"] .input-icon svg {
    stroke: #fff !important;
}
html[data-theme="dark"] .divider {
    color: #aeb7c5 !important;
}
html[data-theme="dark"] .divider span {
    background: #354153 !important;
}
html[data-theme="dark"] .loading-overlay {
    background: #0c1117 !important;
}
html[data-theme="dark"] .mz-loader {
    background-image: url("/user/api/content/app-logo.php?theme=dark&v=319") !important;
}

/* 320 authentication visibility and clean native controls. */
.input-box,
.input-box:focus-within,
.input-box input {
    box-shadow: none !important;
}
.input-box input {
    -webkit-appearance: none;
    appearance: none;
}
.input-box input::-webkit-outer-spin-button,
.input-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
html[data-theme="dark"] .login-button {
    background: #fff !important;
    color: #101720 !important;
    border: 1px solid #fff !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .login-button svg {
    stroke: #101720 !important;
}

/* Authentication 321: lift the login form slightly. */
.login-content {
    padding-top: 12px !important;
}
.header-text h1 {
    font-size: clamp(16px, 4.3vw, 20px) !important;
    line-height: 1.25 !important;
    letter-spacing: -.25px !important;
    white-space: nowrap;
}
.header-text p {
    display: none !important;
}
.input-box input,
.input-box input::placeholder {
    color: #000 !important;
    font-weight: 750 !important;
}
html[data-theme="dark"] .input-box input,
html[data-theme="dark"] .input-box input::placeholder {
    color: #fff !important;
}
