/* 로그인 화면 — MES 접속 / TaskHub 접속 (donggwang_oms 로그인과 같은 디자인) */
@font-face {
    font-family: 'establishRetrosans';
    font-style: normal;
    font-weight: 400;
    src: url("../../../fonts/establish Retrosans.ttf") format("truetype");
}

@font-face {
    font-family: 'SUIT Variable';
    font-style: normal;
    font-weight: 100 900;
    src: url("../../../fonts/SUIT-Variable.woff2") format("woff2");
}

/* base.html 의 상단 메뉴·제목 위를 화면 전체로 덮는다 */
.login-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background: url("../../../img/login/login-back.jpg") center / cover no-repeat;
    font-family: 'SUIT Variable', 'Nanum Gothic', sans-serif;
}

.login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
}

.login__box {
    width: 500px;
    max-width: 100%;
    margin: auto;
    padding: 50px 30px;
    border-radius: 5px;
    background: #8b8b8b73;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.login__title {
    margin: 0;
    font-family: 'establishRetrosans', sans-serif;
    color: #f58a16;
    font-size: 30px;
    font-style: italic;
    text-align: center;
}

.login__title span {
    font-family: 'establishRetrosans', sans-serif;
    color: #ff5959;
}

.login__img {
    text-align: center;
    margin: 30px 0;
}

.login__img .img-user {
    width: 120px;
}

.login .group-box {
    width: 100%;
    margin-bottom: 30px;
}

.login .group-box label {
    display: block;
    margin-bottom: 4px;
    color: #76ebff;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-left: 8px;
}

.login .group-box label::before {
    content: '';
    display: block;
    width: 3px;
    border-radius: 20px;
    height: 14px;
    position: absolute;
    left: 0;
    top: calc(50% - 7px);
    background: #76ebff;
}

.login .group-box .input-box {
    position: relative;
}

.login .input-control {
    display: block;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    width: 100% !important;
    height: 40px !important;
    padding: 0 36px 0 8px !important;
    outline: none !important;
    border-radius: 0 !important;
    font-family: inherit;
    font-size: 14px !important;
    background: none !important;
    color: #ededed !important;
    box-shadow: none !important;
}

.login .input-control::placeholder {
    color: #d0d0d0;
}

.login .input-control:focus {
    border-bottom: 1px solid #37acff !important;
    box-shadow: none !important;
}

/* 크롬 자동완성 배경(노란/흰색)이 어두운 화면을 가리지 않도록 */
.login .input-control:-webkit-autofill,
.login .input-control:-webkit-autofill:hover,
.login .input-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #ededed;
    transition: background-color 9999s ease-in-out 0s;
}

.login .group-box .input-box .input-icon {
    position: absolute;
    top: calc(50% - 10px);
    right: 8px;
    width: 20px;
}

.login .group-box .error {
    margin: 5px 0 0;
    padding-left: 4px;
    color: #fffb4e;
    font-size: 13px;
}

.login .group-box .error i {
    margin-right: 1px;
}

/* 로그인 버튼 두 개: MES 접속 / TaskHub 접속 */
.login__btns {
    display: flex;
    gap: 12px;
    margin-top: 70px;
}

.login__btn {
    display: block;
    flex: 1;
    margin: 0;
    padding: 12px 0;
    border: none;
    border-radius: 100px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.login__btn:hover {
    opacity: 0.8;
}

.login__btn--oms {
    background: linear-gradient(90deg, #22c3f4, #6c6cf5);
    box-shadow: 0 6px 18px rgba(34, 195, 244, 0.35);
}

.login__btn--hub {
    background: linear-gradient(90deg, #34c98e, #12a37a);
    box-shadow: 0 6px 18px rgba(18, 189, 150, 0.35);
}

.login__find {
    margin: 22px 0 0;
    text-align: center;
}

.login__find span {
    color: #d8d8d8;
    font-size: 13px;
    cursor: pointer;
}

.login__find span:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login__box {
        padding: 36px 20px;
    }
    .login__btns {
        margin-top: 50px;
    }
}
