/*
 * Account pages and pieces: reset password (template-resetpw.php), 404, "Lost your group link?"
 * (templates/account/find-group.php) and "Remember this device" in the password prompt.
 */

.mm-acc .mm-acc__hero {
    padding-bottom: 48px;
}

.mm-acc .mm-acc__main {
    padding-top: 0;
}

.mm-acc .mm-acc__card {
    position: relative;
    margin-top: -28px;
    padding: 22px;
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
}

.mm-acc .mm-acc__for {
    display: flex;
    gap: 10px;
    margin: 0 0 16px !important;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(62, 199, 194, .1);
    color: #1b1b1b;
    font-size: 14px;
    line-height: 1.45;
}

.mm-acc .mm-acc__for i {
    margin-top: 3px;
    color: #2a9d99;
}

.mm-acc .mm-acc__lead {
    margin: 0 0 16px !important;
    color: #4a4a4a;
    font-size: 15px;
    line-height: 1.55;
}

.mm-acc .mm-acc__error {
    margin: 0 0 14px !important;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fdecea;
    color: #b42318;
    font-size: 14px;
    font-weight: 600;
}

.mm-acc .mm-acc__form label {
    display: block;
    margin: 0 0 14px;
    color: #1b1b1b;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.mm-acc .mm-acc__pw {
    position: relative;
    display: block;
    margin-top: 6px;
}

.mm-acc .mm-acc__pw input,
.mm-find input[type="email"] {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 70px 0 14px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #1b1b1b !important;
    font-family: inherit;
    font-size: 16px !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.mm-find input[type="email"] {
    padding-right: 14px !important;
}

.mm-acc .mm-acc__pw input::placeholder,
.mm-find input::placeholder {
    color: #9a9a9a !important;
    line-height: normal !important;
    text-transform: none !important;
}

.mm-acc .mm-acc__pw input:focus,
.mm-find input:focus {
    border-color: #3ec7c2 !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(62, 199, 194, .15) !important;
}

.mm-acc .mm-acc__pw button {
    position: absolute;
    top: 50%;
    right: 8px;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #2a9d99;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    transform: translateY(-50%);
    cursor: pointer;
}

.mm-acc .mm-acc__hint {
    margin: -4px 0 16px !important;
    color: #6d6d6d;
    font-size: 13px;
}

.mm-acc .mm-acc__hint.is-error {
    color: #b42318;
}

.mm-acc .mm-acc__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    background: #3ec7c2;
    color: #1b1b1b !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}

.mm-acc .mm-acc__btn:hover {
    background: #2a9d99;
}

.mm-acc .mm-acc__ok {
    margin: 0 0 10px;
    color: #1f8a5b;
    font-size: 44px;
    text-align: center;
}

.mm-acc .mm-acc__ok + .mm-acc__lead {
    text-align: center;
}

.mm-acc .mm-acc__help {
    margin: 18px 0 0 !important;
    color: #6d6d6d;
    font-size: 14px;
    text-align: center;
}

.mm-acc .mm-acc__help a {
    color: #2a9d99;
    font-weight: 700;
}

/* "Lost your group link?" */
.mm-find {
    margin: 0;
    text-align: left;
}

.mm-acc__lead + .mm-find {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.mm-find .mm-find__title {
    margin: 0 0 4px !important;
    color: #1b1b1b;
    font-size: 16px;
    font-weight: 800;
}

.mm-find .mm-find__title i {
    margin-right: 4px;
    color: #2a9d99;
}

.mm-find .mm-find__lead {
    margin: 0 0 12px !important;
    color: #6d6d6d;
    font-size: 14px;
    line-height: 1.45;
}

.mm-find .mm-find__row {
    display: flex;
    gap: 8px;
}

.mm-find .mm-find__row input {
    flex: 1 1 auto;
    min-width: 0;
}

.mm-find .mm-find__row button {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: #1b1b1b;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.mm-find .mm-find__row button:disabled {
    opacity: .6;
    cursor: wait;
}

.mm-find .mm-find__msg {
    min-height: 1em;
    margin: 10px 0 0 !important;
    color: #1f8580;
    font-size: 14px;
    line-height: 1.45;
}

.mm-find .mm-find__msg:empty {
    display: none;
}

.mm-find .mm-find__msg.is-error {
    color: #b42318;
}

@media (max-width: 420px) {
    .mm-find .mm-find__row {
        flex-direction: column;
    }

    .mm-find .mm-find__row button {
        width: 100%;
    }
}

/* Homepage hero: link under "Paste your group link" + the find box (dark hero) */
.mm-home .mmh-link__lost {
    margin: 10px 0 0 !important;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
}

.mm-home .mmh-link__lost button {
    padding: 0;
    border: 0;
    background: none;
    color: #3ec7c2;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.mm-home .mmh-findbox {
    max-width: 520px;
    margin-top: 14px;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
}

/* 404 */
.mm-404 .mm-404__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.mm-404 .mm-404__links p {
    flex: 0 0 100%;
    margin: 0 0 4px !important;
    color: #6d6d6d;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.mm-404 .mm-404__links a {
    padding: 8px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 999px;
    background: #fff;
    color: #1b1b1b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mm-404 .mm-404__links a:hover {
    border-color: #1b1b1b;
}

/* Password prompt: "Remember this device" */
#input-pw .mm-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

#input-pw .mm-remember input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #3ec7c2;
}

/* ---------- Group page when the link doesn't open a group (template-dashboard.php) ---------- */

.mm-nogroup {
    max-width: 560px;
    margin: 40px auto 56px;
    padding: 28px 24px 24px;
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
    text-align: center;
}

.mm-nogroup__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: rgba(62, 199, 194, .12);
    color: #2a9d99;
    font-size: 26px;
}

.mm-nogroup h1.mm-nogroup__title {
    margin: 0 0 8px;
    padding: 0;
    color: #1b1b1b;
    font-family: inherit;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
}

.mm-nogroup .mm-nogroup__lead {
    margin: 0 0 20px !important;
    color: #5c5c5c;
    font-size: 15px;
    line-height: 1.55;
}

.mm-nogroup .mm-nogroup__lead b {
    color: #1b1b1b;
    font-weight: 600;
    word-break: break-word;
}

.mm-paste {
    text-align: left;
}

.mm-paste label {
    display: block;
    margin: 0 0 8px;
    color: #1b1b1b;
    font-size: 15px;
    font-weight: 800;
}

.mm-paste .mm-paste__row {
    display: flex;
    gap: 8px;
}

.mm-paste input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #1b1b1b !important;
    font-family: inherit;
    font-size: 16px !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.mm-paste input::placeholder {
    color: #9a9a9a !important;
    text-transform: none !important;
}

.mm-paste input:focus {
    border-color: #3ec7c2 !important;
    outline: 0;
}

.mm-paste button {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: #3ec7c2;
    color: #1b1b1b;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.mm-paste .mm-paste__error {
    margin: 8px 0 0 !important;
    color: #b42318;
    font-size: 13.5px;
}

.mm-nogroup__or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    color: #9a9a9a;
    font-size: 12px;
    text-transform: uppercase;
}

.mm-nogroup__or::before,
.mm-nogroup__or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ececec;
}

.mm-nogroup__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 18px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}

.mm-nogroup a.mm-nogroup__btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #1b1b1b;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
}

.mm-nogroup a.mm-nogroup__link {
    color: #2a9d99 !important;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .mm-nogroup {
        margin: 20px 4px 40px;
        padding: 22px 16px 18px;
    }

    .mm-nogroup h1.mm-nogroup__title {
        font-size: 22px;
    }

    .mm-paste .mm-paste__row {
        flex-direction: column;
    }

    .mm-paste button {
        width: 100%;
    }
}
