/* 기본 폰트 및 중앙 정렬 */
body {
    font-family: 'Apple SD Gothic Neo', Malgun Gothic, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 로그인 박스 스타일 */
.login-box {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 320px;
    box-sizing: border-box;
    text-align: center;
}

.login-box h1 {
    margin: 0 0 30px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: left;
    color: #444;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #6f59b6;
    outline: none;
}

button[type="submit"] {
    width: 100%;
    background-color: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 16px;
}

button[type="submit"]:hover {
    background-color: #5a4dbd;
}

.links {
    font-size: 13px;
    color: #5d4dbc;
    margin-bottom: 20px;
}

.links a {
    color: #5d4dbc;
    text-decoration: none;
    margin: 0 6px;
}

.links a:hover {
    text-decoration: underline;
}

.signup {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.signup a {
    color: #5d4dbc;
    text-decoration: none;
    font-weight: 500;
}

.signup a:hover {
    text-decoration: underline;
}

.homepage-link a {
    font-size: 13px;
    color: #5d4dbc;
    text-decoration: none;
}

.homepage-link a:hover {
    text-decoration: underline;
}

.register-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 350px;
    height: auto;
}

.register-container input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    font-size: 13px;
    margin-top: 10px;
    color: #555;
}

.checkbox-group label {
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
    width: 10px;
    margin-left: 8px;
    transform : scale(2.5);

}

/* input[type="checkbox"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 5px;
    box-sizing: border-box;
    font-size: 14px;
} */

button[type="submit"] {
    width: 100%;
    background: #333;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
/* 비밀번호 컨테이너 설정 */
.password-input-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 라벨 스타일 (입력창 위에 위치) */
.password-input-container label {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* 입력창 스타일 */
.password-input-container input {
    width: 100%;
    padding: 10px; /* 오른쪽 패딩을 40px 주어 아이콘 공간 확보 */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

/* 아이콘 위치 잡기 (중요) */
.password-toggle {
    position: absolute;
    right: 12px;
    /* 라벨 높이만큼 아래로 내려가야 하므로 하단에서 고정 */
    bottom: 20px; 
    cursor: pointer;
    font-size: 16px;
    color: #888;
    user-select: none;
    line-height: 1; /* 아이콘 높이 정렬 */
}

/* 마우스를 올렸을 때 색상 변경 */
.password-toggle:hover {
    color: #333;
}

/* 회원가입 버튼 스타일 보너스 */
#joinButton {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.joinButton {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.password-toggle-text {
    position: absolute;
    right: 12px;
    bottom: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
    user-select: none;
}

.phone-group {
    display: flex;
    gap: 8px;
}

.phone-group input {
    flex: 1;
}
.phone-group button {
    padding: 10px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

.auth-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-group input {
    flex: 1;
}

.hidden {
    display: none;
}

.verifyAuth{
    padding: 10px;
    align-items: center;
    margin-top: -15px;
}

.password-guide{
    font-size: 12px;
    color: gray;
    margin-bottom: 8px;
}
.font-red{
    color: red;
}

.error-msg {
    margin-bottom: 30px; /* 작은 여백 */
    color: red; /* 기존 스타일 유지 */
}
.mrg-top10 {
    margin-top: 10px;
}

.mrg_t4{
    margin-top: 4px;
}
.mrg_l150{
    margin-left: 150px;
}
#modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 반투명 검정 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
    
/* 숨김 처리용 클래스 */
.modal-hidden {
    display: none !important;
}

/* 팝업 박스 */
.modal-content {
    background: white;
    width: 90%;
    max-width: 375px;
    padding: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 본문 스크롤 처리 */
.modal-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto; /* 내용이 길면 스크롤 생성 */
    line-height: 1.6;
    font-size: 14px;
}

.agree-text {
    min-width: 120px;
    font-size: 14px;
}

.modal-text {
    width: 100px;
}

.popup_X_button {
    /* font-size: 3em; */
    position: absolute;
    right: 42%;
    text-decoration: none; /* 밑줄 없애기 */
    /* color: inherit;       링크 색상을 부모 요소와 같게 설정 (선택사항) */
    color: darkgray
}

.mrg10-left{
    margin-left: 10px;
}

/* 팝업창 */
/* 배경 레이어 */
@media (max-width: 768px) {
    #modal-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.5); /* 반투명 검정 */
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .register-container {
        background: #fff;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        width: 90%;
        height: 100%;
        /* display: flex; 
        justify-content: center; */
        align-content: center;
    }

    /* 숨김 처리용 클래스 */
    .modal-hidden {
        display: none !important;
    }

    /* 팝업 박스 */
    .modal-content {
        background: white;
        width: 90%;
        max-width: 500px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    /* 본문 스크롤 처리 */
    .modal-body {
        padding: 20px;
        max-height: 300px;
        overflow-y: auto; /* 내용이 길면 스크롤 생성 */
        line-height: 1.6;
        font-size: 14px;
    }
    .modal-text {
        position: absolute;
        right: 35px;
        width: 30px;
    }

    .popup_X_button {
        /* font-size: 3em; */
        position: absolute;
        right: 30px;
        text-decoration: none; /* 밑줄 없애기 */
        /* color: inherit;       링크 색상을 부모 요소와 같게 설정 (선택사항) */
        color: darkgray

    }
}