/* MFS - Hotmart: cartão de login que vira (frente = login, verso = comprar). Cores do popup 1438. */

/* Cadeado no canto superior direito dos boxes de módulo/aula (só para quem não tem acesso; classe posta pelo JS). */
.mfs-locked-box { position: relative; }
.mfs-locked-box::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #123152 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    pointer-events: none;
    transition: transform .25s ease;
}
.mfs-locked-box:hover::after { transform: scale(1.08); }
@media (max-width: 767px) {
    .mfs-locked-box::after { top: 10px; right: 10px; width: 34px; height: 34px; background-size: 17px 17px; }
}
.mfs-login {
    --mfs-navy: #022753;
    --mfs-navy-2: #123152;
    --mfs-gold: #F6BB39;
    --mfs-text: #000;
    --mfs-muted: #5b6573;
    --mfs-error: #b42318;
    --mfs-ok: #027a48;
    perspective: 1600px;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    color: var(--mfs-text);
}

.mfs-login *,
.mfs-login *::before,
.mfs-login *::after { box-sizing: border-box; }

.mfs-login__card {
    display: grid;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.mfs-login.is-flipped .mfs-login__card { transform: rotateY(180deg); }

.mfs-login__face {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.mfs-login__face--back { transform: rotateY(180deg); }

@media (prefers-reduced-motion: reduce) {
    .mfs-login__card { transition: none; }
}

.mfs-login__lock { width: 64px; height: auto; margin-bottom: 4px; }

.mfs-login__title {
    margin: 0;
    font-family: "PT Serif", serif;
    font-weight: 400;
    font-size: 35px;
    line-height: 1.1;
    color: var(--mfs-navy);
}
.mfs-login__title strong { font-weight: 700; }

.mfs-login__text {
    margin: 0;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.5;
}
.mfs-login__text strong { font-weight: 600; }

.mfs-login__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.mfs-login__step { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.mfs-login[data-step="email"] .mfs-login__step--code,
.mfs-login[data-step="code"] .mfs-login__step--email,
.mfs-login[data-step="email"] .mfs-login__label-code,
.mfs-login[data-step="code"] .mfs-login__label-email { display: none; }

.mfs-login__label { font-size: 13px; font-weight: 500; color: var(--mfs-navy); }
.mfs-login__sent-to { font-weight: 600; word-break: break-all; }

.mfs-login__input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #c9d1dc;
    border-radius: 23px;
    font: inherit;
    font-size: 16px; /* 16px evita zoom no iOS */
    color: var(--mfs-text);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.mfs-login__input:focus { border-color: var(--mfs-navy-2); box-shadow: 0 0 0 3px rgba(18, 49, 82, .15); }
.mfs-login__input--code { text-align: center; letter-spacing: 8px; font-size: 22px; font-weight: 600; }

.mfs-login__msg { margin: 0; min-height: 1.2em; font-size: 13px; }
.mfs-login__msg.is-error { color: var(--mfs-error); }
.mfs-login__msg.is-ok { color: var(--mfs-ok); }

.mfs-login__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 363px;
    align-self: center;
    padding: 17px 15px;
    border: 0;
    border-radius: 23px;
    background: var(--mfs-gold);
    color: #000;
    font: inherit;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 15px -3px rgba(0, 0, 0, .5);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}
.mfs-login__btn:hover { transform: scale(1.04); box-shadow: 0 0 14px -4px rgba(0, 0, 0, .5); color: #000; }
.mfs-login__btn:focus-visible { outline: 3px solid var(--mfs-navy-2); outline-offset: 3px; }
.mfs-login__btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.mfs-login__link {
    background: none;
    border: 0;
    padding: 4px;
    font: inherit;
    font-size: 14px;
    color: var(--mfs-navy);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mfs-login__link:hover { color: var(--mfs-navy-2); background: none; }
.mfs-login__change { align-self: flex-start; font-size: 12px; padding: 0; }

@media (max-width: 767px) {
    .mfs-login__title { font-size: 28px; }
    .mfs-login__lock { width: 52px; }
}
