/* Sign-in screen, reused from the reseller sign-in (html/reseller/index.php). */
html { overflow-x: hidden; }

body.mmc-sign-in-page {
    background-color: #FCFCFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.background {
    position: absolute;
    top: 0;
    left: 25%;
    width: 80%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.background-png {
    width: 100%;
    height: 100%;
    z-index: -1;
    min-height: 100vh;
}

.container-wrapper {
    position: relative;
    width: 480px;
    max-width: 100%;
    min-height: 612px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0;
    z-index: 1;
}

.logo {
    margin-bottom: 0.5rem;
    margin-right: auto;
    display: inline-flex;
    align-items: start;
    padding-bottom: 20px;
    padding-top: 10px;
}

.logo-image { width: 75%; }

.sign-in-flash { width: 100%; text-align: center; }

.container {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    width: 480px;
    max-width: 480px;
    border-radius: 6px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 0;
    justify-content: space-between;
}

.form-container.sign-in {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.form {
    width: 70%;
    display: flex;
    flex-direction: column;
}

.form h3 {
    color: #000000;
    margin-bottom: 30px;
}

.sign-in-stripe {
    position: absolute;
    top: 75px;
    left: 23.5%;
    transform: translateX(-50%);
    width: 18%;
    height: auto;
    z-index: 1;
}

.container-inputs {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    margin-top: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    font-size: 12px;
    font-weight: 550;
    transition: margin 0.5s ease, transform 0.5s ease;
}

.input-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.input-area {
    position: relative;
    display: block;
}

.input-area input {
    border: 1px solid #4538FF;
    color: #000;
    padding: 10px;
    width: 100%;
    border-radius: 6px;
}

.password-wrapper input { padding-right: 38px; }

.input-area input:focus,
#signInButton:focus {
    outline: none;
    box-shadow: 0 0 2px 1px #6573FF;
    border-color: #6573FF;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#signInButton:focus { background-color: #6573FF; }

.container-footer a {
    color: #4538FF;
    background: linear-gradient(90deg, #4538FF, #6353FF, #7A69FF, #8371FF, #8176FE, #7D86FD, #76A1FA, #6DC5F7, #66E3F5);
    background-size: 200% 200%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: color 0.2s ease, background-position 0.5s ease;
}

.container-footer a:hover {
    color: transparent;
    background-position: 100% 50%;
    background-size: 300% 300%;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 3s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.error-txt {
    color: #dc3545;
    text-align: left;
    margin-top: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.7s ease, opacity 0.7s ease, margin 0.7s ease;
    display: block;
    width: 100%;
    position: relative;
}

.error-txt.show {
    max-height: 60px;
    opacity: 1;
    margin-top: 10px;
}

.password-wrapper {
    position: relative;
    display: block;
    min-height: 44px;
}

#togglePassword {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    color: #6c757d;
    background: none;
    border: 0;
    padding: 4px;
    z-index: 1;
}

#togglePassword[hidden] { display: none; }
#togglePassword:hover, #togglePassword:focus-visible { color: #000; }
#togglePassword:focus-visible { outline: 2px solid #6573FF; outline-offset: 1px; border-radius: 4px; }

#signInButton {
    height: 44px;
    background-color: #4538FF;
    color: #ffffff;
    border-radius: 8px;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, opacity 0.3s;
    margin-bottom: 10px;
    margin-top: 25px;
}

#signInButton:disabled { opacity: 0.75; cursor: wait; }

#signInLoader {
    display: none;
    margin-left: 10px;
}

#signInButton.is-loading #signInLoader { display: inline; }

.container-footer {
    background-color: #F7F9FC;
    width: 100%;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 3rem;
    border-radius: 0 0 6px 6px;
}

.container-footer p {
    margin: 0;
    line-height: 65px;
    font-weight: 550;
}

.container-footer p span { color: #333; }

.footer-links {
    display: inline-flex;
    margin-right: auto;
    margin-top: 1.5vh;
    gap: 10px;
}

.footer-links span {
    font-size: 10px;
    color: #969696;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 80% { transform: translateX(-10px); }
    40%, 60% { transform: translateX(10px); }
}

.shake { animation: shake 0.35s ease-in-out; }

@media (prefers-reduced-motion: reduce) {
    .shake { animation: none; }
    .container-footer a:hover { animation: none; }
}

@media (max-width: 480px) {
    .background {
        left: 68%;
    }

    .container {
        width: 90%;
        border-radius: 10px;
    }

    .input-group { font-size: 10px; }

    .logo {
        justify-content: center;
        width: 35%;
        margin-right: 0;
        margin-bottom: 2.5rem;
    }

    .container-footer { margin-top: 1rem; }

    .form h3 {
        font-size: 20px;
        margin-bottom: 0.5rem;
        text-wrap: nowrap;
        padding-right: 1.5rem;
    }

    .sign-in-stripe {
        top: 72px;
        left: 22.5%;
    }

    .input-group { margin-bottom: 0.8rem; }

    #signInButton {
        margin-bottom: 0;
        margin-top: 1rem;
    }

    .footer-links { margin-right: 0; }
}
