/* 모달 배경 */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset;
    -webkit-text-fill-color: #3375c1;
}

input:focus {
    outline: 2px solid #3375c1;
}

.login-modal-wrap {
    position: fixed;
    /* 화면 전체를 커버하기 위해 fixed 위치 사용 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 검정색 배경에 약간의 투명도 적용 */
    display: flex;
    align-items: center;
    /* 수직 중앙 정렬 */
    justify-content: center;
    /* 수평 중앙 정렬 */
    z-index: 1000;
    /* 다른 요소 위에 표시 */
}

/* 모달 컨텐츠 스타일 */
.login-modal-content {
    display: flex;
    position: fixed;
    background-color: #fff;
    border-radius: 20px;
    width: 60%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    color: #ccc;
    cursor: pointer;
}

.modal-left {
    width: 40%;
    padding: 60px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background-image: url('../../image/main/login-bg1.jpg');
    background-size: cover;
    /* 배경 이미지가 섹션을 꽉 채우도록 설정 */
    background-position: center;
    /* 배경 이미지의 위치를 센터로 설정 */
    background-repeat: no-repeat;
    /* 배경 이미지가 반복되지 않도록 설정 */
}

.modal-left>h1>a {
    width: 180px;
    height: 40px;
    display: block;
}

.modal-left>h1>a>img {
    width: 100%;
    object-fit: cover;
}

.modal-left>p {
    margin-top: 70px;
    font-size: 35px;
    line-height: 55px;
    font-weight: 800;
    opacity: 0.5;
    /* 50% 투명도 */
}

.modal-right {
    width: 60%;
    padding: 20px 50px;
}

.modal-right>.top-image {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.modal-right>.top-image>img {
    width: 100%;
    object-fit: cover;
}

.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-idx {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-idx>h2 {
    font-size: 40px;
    background: -webkit-linear-gradient(#09348b, #1373d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.login-toggle {
    padding: 5px 10px;
    border-radius: 50px;
    border: 2px solid #09348b;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-toggle.active {
    color: #1a1a1a;
    /* 활성화된 메뉴 항목의 텍스트 색상 */
    border-bottom: 5px solid transparent;
    /* border-image를 사용하기 위해 투명한 border를 설정합니다. */
    border-image: linear-gradient(to right, #09348b, #1373d3) 1;
    /* 그라데이션 적용 */
}

.toggle-btn {
    border-radius: 50px;
    border: none;
    padding: 6px 21px;
    color: #ccc;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-btn.active {
    background: rgb(9, 52, 139);
    background: linear-gradient(90deg, rgba(9, 52, 139, 1) 0%, rgba(19, 115, 211, 1) 60%);
    color: #fff;
    box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.2);
}

.login-input {
    display: flex;
    flex-direction: column;
}

.id-check-string {
    color: #f1416c;
    padding: 15px 0;
}

.login-input>input {
    height: 55px;
    border: 1px solid #ddd;
    color: #ccc;
    border-radius: 10px;
    margin-bottom: 15px;
    padding-left: 10px;
}

.login-input input:focus {
    border: 2px solid #3375c1;
    outline: none;
    color: #3375c1;
    box-sizing: border-box;
}

.login-check {
    display: flex;
    margin-top: 10px;
    align-items: center;
}

.btn-login {
    height: 60px;
    background: rgb(9, 52, 139);
    background: linear-gradient(90deg, rgba(9, 52, 139, 1) 0%, rgba(19, 115, 211, 1) 60%);
    border: none;
    border-radius: 10px;
    margin: 25px 0;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

.login-check>span {
    font-weight: 600;
    color: #ccc;
}

.search-join {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-join>li {
    width: calc(100% / 3);
    text-align: center;
    border-right: 1px solid #ccc;
}

.search-join>li:last-child {
    border-right: none;
}

.search-join>li>a {
    padding: 10px;
    font-size: 14px;
    color: #ccc;
}

.search-join>li:hover>a {
    font-weight: 600;
    color: #3375c1;
}

.login-input .login-check input[type='checkbox'] {
    display: none;
}

.login-input .login-check .checkbox-image {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url('../../image/main/checkbox_gray.jpg');
    background-repeat: no-repeat;
    margin-right: 5px;
    cursor: pointer;
}

.login-input .login-check input[type='checkbox']:checked+.checkbox-image {
    background-image: url('../../image/main/checkbox_skyblue.jpg');
    background-size: contain;
    /* 이미지가 요소 안에 맞도록 조정하되, 비율을 유지합니다. */
    background-position: center;
    /* 이미지를 요소의 가운데에 위치시킵니다. */
    background-repeat: no-repeat;
    /* 이미지가 반복되지 않도록 설정합니다. */
}

.corp-item {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.corp-item>li {
    padding: 0 20px;
}

.corp-item>li>a {
    font-size: 14px;
    color: #ccc;
}

@media (max-width: 1200px) {
    .modal-left {
        display: none;
    }

    .modal-right {
        width: 100%;
    }

    .login-idx>h2 {
        font-size: 30px;
    }

    .login-modal-content {
        overflow-y: auto;
    }
}

@media (max-width: 720px) {
    .login-modal-content {
        width: 85%;
    }

    .login-idx>h2 {
        font-size: 26px;
    }

    .search-join>li>a {
        padding: 0px;
        font-size: 12px;
    }

    .toggle-btn {
        padding: 6px 10px;
    }

    .modal-right {
        padding: 20px 30px;
    }

    .close-modal {
        right: 20px;
    }

    .corp-item>li>a {
        font-size: 12px;
    }

    .login-input>input {
        height: 50px;
    }
}

@media (max-width: 600px) {
    .modal-right {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .login-idx>h2 {
        display: none;
    }

    .login-idx {
        justify-content: center;
    }

    .search-join>li>a {
        font-size: 12px;
    }

    .corp-item>li>a {
        font-size: 12px;
    }

    .toggle-btn {
        font-size: 14px;
    }

    .login-input>input {
        font-size: 14px;
    }

    .btn-login {
        height: 50px;
    }
}