/* Momuto login widget — dark design system, Outfit, sharp geometry.
   Fixes the cropped title (old: fixed 35px height + overflow hidden on
   28px text). Served from /3d-configurator/static/ under git control. */

.box_bg {
    display: none;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.75);
    position: fixed;
    top: 0;
    left: 0;
}

.login_area {
    display: block;
    width: 460px;
    position: fixed;
    z-index: 99999;
    left: calc(50% - 230px);
    top: 16vh;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 8px 24px 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

@media (max-width: 500px) {
    .login_area {
        width: 92vw;
        left: 4vw;
    }
}

.login_area .login_box { width: 100%; }

.login_area .register_box {
    display: none;
    width: 100%;
}

.login_area .card-title {
    width: 100%;
    height: auto;
    overflow: visible;
    color: #ffffff;
    text-align: center;
    font-size: 26px;
    line-height: 1.3;
    font-family: 'Outfit', Helvetica, Arial, sans-serif !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding-bottom: 16px;
    border-bottom: 1px solid #333;
    margin: 32px 0;
}

.login_area .form-group input {
    display: block;
    width: 90%;
    height: 50px;
    line-height: 50px;
    background: #111;
    border-radius: 0 !important;
    border: 1px solid #444;
    font-family: 'Outfit', Helvetica, Arial, sans-serif !important;
    font-size: 16px;
    padding: 0 15px;
    color: #fff;
    font-weight: 400;
    margin: 0 auto 22px;
    background-clip: border-box;
}

.login_area .form-group input::placeholder { color: #8a8a8a; }

.login_area .form-group input:focus {
    outline: none;
    border-color: #e2214b;
}

.login-submit, .register-submit {
    padding: 0;
    margin: 0;
    width: 100%;
}

.login_area button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96%;
    height: 50px;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
    color: #fff !important;
    background: #e2214b !important;
    border: none;
    font-family: 'Outfit', Helvetica, Arial, sans-serif !important;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    border-radius: 0;
    margin: 0 auto;
    padding: 0;
    cursor: pointer;
}

.login_area button:hover { background: #c81a3d !important; }

.login_area .changebox {
    width: 220px;
    height: auto;
    line-height: 1.4;
    font-family: 'Outfit', Helvetica, Arial, sans-serif !important;
    font-size: 14px;
    text-align: center;
    margin: 18px auto 8px;
    color: #a1a1aa;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.login_area .changebox:hover { color: #fff; }

.layer_toast {
    display: none;
    width: 300px;
    line-height: 1.5;
    padding: 12px 16px;
    position: fixed;
    z-index: 999999999;
    top: 16px;
    left: calc(50% - 166px);
    background: #1a1a1a;
    border: 1px solid #e2214b;
    color: #fff;
    font-family: 'Outfit', Helvetica, Arial, sans-serif;
    text-align: center;
    word-break: break-word;
    border-radius: 0;
}
