﻿/* MS Edge 브라우저의 자체 비밀번호 보기 아이콘 숨기기 */
input[type="password"]::-ms-reveal {
    display: none;
}

/* 아이콘 버튼 기본 스타일 */
#togglePassword {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    /* 버튼 크기를 직접 지정 */
    width: 28px;
    height: 28px;
    padding: 4px; /* SVG 아이콘 주변 여백을 위해 padding 사용 */
    /* 배경이미지 설정 */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px; /* 아이콘 크기 */
}

/* 기본 상태 (보이는 눈 아이콘) */
/*#togglePassword {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.44-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L21.73 22 20.46 23.27 3.27 6 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/%3E%3C/svg%3E');
}*/

#togglePassword {
    /* 슬래시(stroke) 색을 눈알(fill) 색과 동일하게 #888로 변경 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3C!-- 눈 부분 (회색) --%3E%3Cpath fill='%23888' d='M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.44-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l-2.9-2.9c-.6.3-1.28.44-2.01.44-2.76 0-5-2.24-5-5 0-.72.15-1.4.44-2.01L7.53 9.8C6.2 10.3 5.06 11.08 4.2 12z'/%3E%3C!-- 동공 부분 (회색) --%3E%3Cpath fill='%23888' d='M12 9c1.66 0 3 1.34 3 3 0 .22-.03.44-.08.65l1.55 1.55c.67-.33 1.41-.53 2.2-.53-2.76 0-5 2.24-5 5 0-.79.2-1.53.53-2.2l-1.55-1.55c.05-.21.08-.43.08-.65 0-1.66-1.34-3-3-3z'/%3E%3C!-- 슬래시 부분 (회색) --%3E%3Cpath stroke='%23888' stroke-width='1.5' d='M4.27 3.27L20.73 19.73'/%3E%3C/svg%3E");
    /* 기타 스타일 */
    width: 24px;
    height: 24px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    background-repeat: no-repeat;
}
    #togglePassword.is-toggled {
        background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"%3E%3Cpath d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/%3E%3C/svg%3E');
    }

.lgnForm li {
    position: relative;
}

.lgnForm input[type="password"] {
    padding-right: 40px;
}

.lgnForm input[type="text"],
.lgnForm input[type="password"] {
    border: 1px solid #ccc; /* 테두리를 깔끔하게 정의 */
    border-radius: 6px; /* ★ 여기가 라운딩 값입니다 ★ */
    transition: border-color 0.2s ease-in-out; /* 클릭 시 색상 변경을 부드럽게 */
}

    .lgnForm input[type="text"]:focus,
    .lgnForm input[type="password"]:focus {
        outline: none;
        border-color: #007bff;
    }

.lgnChk input[type="checkbox"] {
    border-radius: 4px; /* 체크박스 모서리 둥글게 */
    /* 필요하다면 기본 체크박스 크기 조절 */
    /* width: 16px; */
    /* height: 16px; */
}

/* 체크박스 레이블과 간격 조절 (선택 사항) */
.lgnChk label {
    vertical-align: middle; /* 체크박스와 텍스트를 같은 줄에 정렬 */
    margin-left: 5px; /* 체크박스와 텍스트 사이 간격 */
}

/* 기존 체크박스는 안 보이게 숨김 처리 */
.lgnChk input[type="checkbox"] {
    display: none;
}

/* 가짜 체크박스가 될 label의 기본 스타일 */
.lgnChk label {
    position: relative; /* 자식 요소 위치 기준 */
    padding-left: 28px; /* 아이콘이 들어갈 공간 확보 */
    cursor: pointer;
    font-size: 16px; /* 폰트 크기 (필요시 조절) */
    vertical-align: middle;
}

    /* 가짜 체크박스 테두리 만들기 (::before 가상 요소) */
    .lgnChk label::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        border: 2px solid #aaa;
        border-radius: 6px;
        background-color: #fff;
        transition: all 0.2s ease;
    }

/* ★ 실제 체크박스가 체크되었을 때 ★ 가짜 체크박스 스타일 변경 */
.lgnChk input[type="checkbox"]:checked + label::before {
    background-color: #007bff; /* 배경색 채우기 */
    border-color: #007bff; /* 테두리색 변경 */
}

/* 체크 표시 만들기 (::after 가상 요소) */
.lgnChk label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg); /* 위치 및 각도 조절 */
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    opacity: 0; /* 평소에는 안 보이게 */
    transition: opacity 0.2s ease;
}

/* ★ 실제 체크박스가 체크되었을 때 ★ 체크 표시 보여주기 */
.lgnChk input[type="checkbox"]:checked + label::after {
    opacity: 1; /* 보이게 처리 */
}

/* 알림 상자 기본 스타일 */
.notice-box-red {
    display: flex;
    align-items: center;
    background-color: #f8d7da;
    border-left: 5px solid #dc3545;
    padding: 15px 20px;
    margin-bottom: 30px;
}

    /* 알림 상자 안의 아이콘 스타일 */
    .notice-box-red .icon {
        fill: #dc3545;
        min-width: 24px; 
        margin-right: 15px;
    }

    /* 알림 상자 안의 p 태그 스타일 */
    .notice-box-red p {
        margin: 0; 
        color: #721c24; 
        line-height: 1.5;
    }