/* The login screen uses the light-background version of M-NET's logo. */
.task-login #layout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    overflow: auto;
    padding: 0;
    background: #fafafb;
    color: #233849;
    color-scheme: light;
    font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Microsoft YaHei UI", sans-serif;
}

.mnet-login {
    box-sizing: border-box;
    width: min(calc(100% - 48px), 420px);
    margin: auto;
    padding: clamp(26px, 5vw, 46px);
    text-align: left;
    background: white;
    border: 1px solid #d7dfe2;
    border-radius: 32px;
    box-shadow: 0 14px 44px rgba(31, 54, 66, .06);
}

.mnet-login-heading {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e1e6e8;
}

.task-login .mnet-login #logo {
    display: block;
    position: static;
    width: 76px;
    height: auto;
    margin: 0 auto 20px;
}

.mnet-login h1 {
    margin: 0;
    color: #233849;
    font: 500 1.9rem/1.3 "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
}

.mnet-login #login-form {
    position: static;
    width: 100%;
    max-width: none;
}

.mnet-login #login-form tr,
.mnet-login #login-form td {
    display: block;
    width: 100%;
    padding: 0;
}

.mnet-login #login-form td.title {
    display: block !important; /* Elastic hides these labels after adding placeholders. */
    text-align: left;
    color: #394e5c;
}

.mnet-login #login-form label {
    margin: 0 0 6px;
    font-size: .94rem;
    font-weight: 600;
}

.mnet-login .input-group-prepend { display: none; }

.mnet-login #login-form .form-control,
.mnet-login #login-form select {
    width: 100%;
    height: 46px;
    border: 1px solid #aebdc5;
    border-radius: 24px;
    padding-inline: 16px;
    background-color: #fff;
    color: #233849;
    font-size: 16px;
}

.mnet-login .form-control::placeholder { color: transparent; }
.mnet-login #login-form :focus-visible { outline: 2px solid #326886; outline-offset: 2px; }

.mnet-login #rcmloginsubmit {
    min-height: 46px;
    width: 100%;
    border: 1px solid #314d60;
    border-radius: 24px;
    background: #29272f;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-transform: none !important;
}

.mnet-login #rcmloginsubmit:hover { background: #233c4e; }
.mnet-login #login-footer { text-align: center; color: #5b6d76; font-size: .87rem; }

.mnet-language { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mnet-language label { margin: 0; color: #52606a; }
.mnet-language select { padding: 5px 8px; color: #283944; background: white; border: 1px solid #bdc8cf; border-radius: 6px; }

.mnet-art {
    display: grid;
    align-self: stretch;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 24% 25%, #e8defc, transparent 63%),
        linear-gradient(146deg, #f7f4fa, #e7e9ed);
}
.mnet-cast {
    position: relative;
    width: min(77%, 450px);
    aspect-ratio: 450 / 440;
    container-type: inline-size;
}
.mnet-cast .character {
    position: absolute;
    bottom: 0;
    transform-origin: bottom;
    transform: skewX(var(--lean, 0deg));
    transition: transform .45s ease, height .45s ease;
}
.mnet-cast .violet { left: 15.55%; width: 40%; height: 91%; background: #6c3ff5; border-radius: 2.2cqw 2.2cqw 0 0; }
.mnet-cast .charcoal { left: 53.33%; width: 26.67%; height: 70.5%; background: #2d2d2d; border-radius: 1.8cqw 1.8cqw 0 0; }
.mnet-cast .apricot { left: 0; width: 53.33%; height: 45.45%; background: #ff9b6b; border-radius: 27cqw 27cqw 0 0; }
.mnet-cast .lemon { left: 68.89%; width: 31.11%; height: 52.27%; background: #e8d754; border-radius: 16cqw 16cqw 0 0; }
.mnet-cast .face {
    position: absolute;
    top: 10%; left: 25%;
    display: flex;
    gap: 6cqw;
    transform: translate(var(--gaze-x, 0px), var(--gaze-y, 0px));
    transition: transform .18s ease-out;
}
.mnet-cast .face i {
    display: grid;
    place-items: center;
    width: 4cqw; height: 4cqw;
    border-radius: 50%;
    background: white;
    animation: mnet-blink 5.7s infinite;
}
.mnet-cast .face i::after {
    content: '';
    width: 40%; height: 40%;
    border-radius: 50%; background: #26242a;
    transform: translate(var(--pupil-x, 0px), var(--pupil-y, 0px));
}
.mnet-cast .charcoal .face { gap: 4.5cqw; }
.mnet-cast .charcoal i { width: 3.55cqw; height: 3.55cqw; animation-delay: -1.2s; }
.mnet-cast .apricot .face { top: 45%; left: 34%; }
.mnet-cast .lemon .face { top: 18%; left: 37%; gap: 4cqw; }
.mnet-cast :is(.apricot,.lemon) i { width: 2.65cqw; height: 2.65cqw; background: #28272c; animation: none; }
.mnet-cast :is(.apricot,.lemon) i::after { display: none; }
.mnet-cast .lemon .face::after {
    content: ''; position: absolute; top: 10cqw; left: -2.5cqw;
    width: 17cqw; height: .9cqw; border-radius: 1cqw; background: #28272c;
}
.mnet-cast.attentive .violet { height: 100%; transform: skewX(-10deg) translateX(8%); }
.mnet-cast.attentive .charcoal { transform: skewX(6deg); }
.mnet-cast.looking-away .face { transform: translate(-3cqw, -1cqw); }
.mnet-cast.looking-away .face i::after { transform: translate(-.8cqw, -.5cqw); }
@keyframes mnet-blink { 0%, 93%, 97%, 100% { scale: 1; } 95% { scale: 1 .12; } }
.mnet-login #login-form #rcmloginpwd { padding-right: 48px; }
.mnet-login .password-visibility {
    position: absolute; right: 3px; top: 50%; z-index: 4;
    transform: translateY(-50%); width: 40px; height: 40px;
    background: transparent; border: 0; border-radius: 50%; color: #45434e;
}
.password-visibility::before {
    content: ''; display: inline-block; width: 18px; height: 13px;
    border: 1.6px solid; border-radius: 75% 20%; transform: rotate(35deg);
    background: radial-gradient(circle, currentColor 2px, transparent 3px);
}
.password-visibility[aria-pressed="true"]::after {
    content: ''; position: absolute; top: 49%; left: 9px; width: 22px;
    border-top: 2px solid; transform: rotate(-45deg);
}
@media (max-width: 760px) {
    .task-login #layout-content { display: flex; flex-direction: column; justify-content: safe center; padding: 24px 16px; gap: 16px; }
    .mnet-art { background: none; align-self: center; width: 160px; flex: none; }
    .mnet-cast { width: 86%; }
    .mnet-login { margin: 0; width: min(100%, 410px); padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .mnet-cast *, .mnet-cast *::after { transition: none !important; animation: none !important; }
}
