:root {
    --mm-auth-blue: #0050dd;
    --mm-auth-blue-dark: #003795;
    --mm-auth-yellow: #ffd600;
    --mm-auth-ink: #17212b;
    --mm-auth-muted: #667085;
    --mm-auth-line: #e3e8ef;
    --mm-auth-surface: #ffffff;
    --mm-auth-background: #f5f7fb;
}

.mm-auth-page {
    display: flex;
    width: 100%;
    min-height: 610px;
    align-items: flex-start;
    justify-content: center;
    padding: 42px 16px 64px;
    background: var(--mm-auth-background);
    font-family: RobotoAz, Arial, sans-serif;
}

.mm-auth-card {
    width: 100%;
    max-width: 540px;
    padding: 30px 34px 32px;
    border: 1px solid rgba(23, 33, 43, .08);
    border-radius: 16px;
    background: var(--mm-auth-surface);
    box-shadow: 0 16px 44px rgba(23, 33, 43, .07);
}

.mm-auth-card-head {
    text-align: center;
}

.mm-auth-kicker {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--mm-auth-blue);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}

.mm-auth-card-head h1 {
    margin: 0;
    color: var(--mm-auth-ink);
    font-family: RobotoAz, Arial, sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 38px;
}

.mm-auth-card-head p {
    max-width: 410px;
    margin: 8px auto 0;
    color: var(--mm-auth-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

.mm-auth-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 24px 0;
    padding: 4px;
    border-radius: 12px;
    background: #eef1f5;
}

.mm-auth-switch a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 9px;
    color: #536071;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}

.mm-auth-switch a:hover,
.mm-auth-switch a:focus {
    color: var(--mm-auth-blue);
    text-decoration: none;
}

.mm-auth-switch a.is-active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 33, 43, .08);
    color: var(--mm-auth-ink);
}

.mm-auth-form .mm-auth-field {
    margin: 0 0 16px;
}

.mm-auth-form .mm-auth-field label {
    display: block;
    margin: 0 0 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 500;
    line-height: 19px;
}

.mm-auth-form .mm-auth-field .form-control {
    width: 100%;
    height: 48px;
    padding: 12px 14px;
    border: 1px solid #d5dce5;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    color: var(--mm-auth-ink);
    font-family: RobotoAz, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    transition: border-color .18s, box-shadow .18s;
}

.mm-auth-form .mm-auth-field .form-control:hover {
    border-color: #aab5c2;
}

.mm-auth-form .mm-auth-field .form-control:focus {
    border-color: var(--mm-auth-blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 80, 221, .12);
}

.mm-auth-form .mm-auth-field.has-error .form-control {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .08);
}

.mm-auth-form .mm-auth-field .help-block {
    min-height: 17px;
    margin: 5px 0 -4px;
    color: #d92d20;
    font-size: 12px;
    line-height: 17px;
}

.mm-auth-form .mm-auth-field:not(.has-error) .help-block:empty {
    display: none;
}

.mm-auth-name-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mm-auth-password-field {
    position: relative;
}

.mm-auth-password-field .form-control {
    padding-right: 48px !important;
}

.mm-auth-password-toggle {
    position: absolute;
    z-index: 2;
    top: 32px;
    right: 8px;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #667085;
}

.mm-auth-password-toggle:hover,
.mm-auth-password-toggle:focus {
    background: #eef5ff;
    color: var(--mm-auth-blue);
    outline: 0;
}

.mm-auth-password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mm-auth-password-toggle .mm-eye-closed,
.mm-auth-password-toggle[aria-pressed="true"] .mm-eye-open {
    display: none;
}

.mm-auth-password-toggle[aria-pressed="true"] .mm-eye-closed {
    display: block;
}

.mm-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 2px 0 18px;
}

.mm-auth-options > a,
.mm-auth-bottom-link a {
    color: var(--mm-auth-blue);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.mm-auth-options > a:hover,
.mm-auth-options > a:focus,
.mm-auth-bottom-link a:hover,
.mm-auth-bottom-link a:focus {
    color: var(--mm-auth-blue-dark);
    text-decoration: underline;
}

.mm-auth-remember {
    margin: 0;
}

.mm-auth-remember .checkbox {
    margin: 0;
}

.mm-auth-remember .checkbox label {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 8px;
    padding-left: 0;
    color: #475467;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
}

.mm-auth-remember input[type="checkbox"] {
    position: static;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--mm-auth-blue);
}

.mm-auth-submit {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--mm-auth-blue);
    box-shadow: 0 8px 18px rgba(0, 80, 221, .18);
    color: #fff;
    font-family: Montserrat-Medium, Montserrat, RobotoAz, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    transition: background-color .18s, box-shadow .18s, transform .18s;
}

.mm-auth-submit:hover,
.mm-auth-submit:focus {
    background: var(--mm-auth-blue-dark);
    box-shadow: 0 10px 22px rgba(0, 55, 149, .22);
    color: #fff;
    outline: 0;
    transform: translateY(-1px);
}

.mm-auth-submit:active {
    box-shadow: 0 5px 12px rgba(0, 55, 149, .16);
    transform: translateY(0);
}

.mm-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: #8a94a3;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.mm-auth-divider::before,
.mm-auth-divider::after {
    height: 1px;
    flex: 1 1 auto;
    background: var(--mm-auth-line);
    content: "";
}

.mm-auth-social,
.mm-auth-social .auth-clients {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.mm-auth-social-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mm-auth-social .mm-auth-social-button.auth-link {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 12px !important;
    border: 1px solid #d5dce5;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    color: var(--mm-auth-ink) !important;
    font-family: RobotoAz, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    text-decoration: none !important;
    transition: border-color .18s, background-color .18s, box-shadow .18s;
}

.mm-auth-social .mm-auth-social-button.auth-link:hover,
.mm-auth-social .mm-auth-social-button.auth-link:focus {
    border-color: #aab5c2;
    background: #f9fafb;
    box-shadow: 0 4px 12px rgba(23, 33, 43, .06);
    color: var(--mm-auth-ink) !important;
    outline: 0;
}

.mm-auth-provider-icon {
    display: flex;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
}

.mm-auth-provider-icon svg {
    display: block;
    width: 21px;
    height: 21px;
}

.mm-auth-provider-label {
    min-width: 0;
}

.mm-auth-bottom-link {
    margin: 20px 0 0;
    color: var(--mm-auth-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

@media (max-width: 767px) {
    .mm-auth-page {
        min-height: 0;
        padding: 20px 0 38px;
        background: #fff;
    }

    .mm-auth-card {
        max-width: 100%;
        padding: 22px 16px 26px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .mm-auth-card-head h1 {
        font-size: 26px;
        line-height: 34px;
    }

    .mm-auth-switch {
        margin: 20px 0;
    }
}

@media (max-width: 430px) {
    .mm-auth-name-grid,
    .mm-auth-social-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .mm-auth-options {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mm-auth-form .form-control,
    .mm-auth-submit,
    .mm-auth-social .mm-auth-social-button.auth-link {
        transition: none;
    }
}
