
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.join_form_one {
    display: contents;
}

.pop_join_box {
    position: relative;
    color: #ffffff;
    border: 2px solid var(--maincolor);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    width: 970px;
    margin: 0 auto;
}

.pop_join_box .ip_id {
    width: 100%
}

.pop_join_box .ip_sm {
    color: #fff8f8;
      background: linear-gradient(to bottom, rgb(247, 222, 0) 1%, rgba(243, 166, 28, 0.79) 100%);

}
.pop_join_box .ip_sm {
    width: 48%;
}
.pop_join_ttl {
    margin-bottom: 20px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 65px;
    margin-bottom: 22px;
    width: 100%;
}

.form-group {
    flex: 1;
    position: relative;
    width: 100%;
    max-width: calc(50% - 10px);
}

label {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
}

.ip_id,
select.ip_id {
    width: 100%;
    height: 43px;
    line-height: 43px;
    background: rgba(50,50,50,0.9) !important; /* !important 추가 */
    border: 1px solid #000;
    border-radius: 4px;
    color: #fff !important; /* !important 추가 */
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

/* 입력 중일 때도 스타일 유지 */
.ip_id:focus,
select.ip_id:focus {
      background: linear-gradient(to bottom, rgb(247, 222, 0) 1%, rgba(243, 166, 28, 0.79) 100%);
    color: #fff !important;
    outline: none;
    border-color: #ffd400;
}

/* 자동완성 시에도 배경색 유지 */
.ip_id:-webkit-autofill,
.ip_id:-webkit-autofill:hover,
.ip_id:-webkit-autofill:focus,
.ip_id:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(50,50,50,0.9) inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-with-button {
    position: relative;
    width: 100%;
    display: inline-block;
}

/* 버튼이 있는 입력창 */
.input-with-button .ip_id {
    width: 100%
    padding-right: 65px;
}

.verify-btn,
.phone-verify-btn {
    position: absolute;
    right: 27px;
    top: 4px;
    width: 60px;
    height: 37px;
    padding: 0;
    background: linear-gradient(to bottom, rgb(247, 222, 0) 1%, rgba(243, 166, 28, 0.79) 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-right: -24px;
    z-index: 1;
}
.verify-btn:hover,
.phone-verify-btn:hover {
      background: linear-gradient(to bottom, rgb(247, 222, 0) 1%, rgba(243, 166, 28, 0.79) 100%);
    color: #fff; /* 텍스트 색상 변경 */
}

.gender-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    margin: 0 auto 1px;
}

.gender-btn {
    flex: 1;
    height: 43px;
    line-height: 43px;
    background: rgba(50,50,50,0.9);
    border: 1px solid #000;
    color: #00ff9d;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.gender-btn.active {
      background: linear-gradient(to bottom, rgb(247, 222, 0) 1%, rgba(243, 166, 28, 0.79) 100%);
    color: #fff;
}
.gender-btn2.active {
    background: linear-gradient(180deg, #fff 0, #fff);
    color: #fff;
}

.carrier-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    display: none;
}

.carrier-popup.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.carrier-popup-content {
    position: relative;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    background: #1c1c1c;
    border-radius: 15px;
    padding: 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.carrier-popup-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.carrier-popup-header h3 {
    color: #fff;
    font-size: 24px;
    margin: 0;
}

.carrier-close {
    position: absolute;
    right: -10px;
    top: -10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.carrier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px;
}

.carrier-option {
    background: linear-gradient(180deg, #3e3e3e, #2a2a2a);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carrier-option:hover {
    transform: translateY(-5px);
    background: linear-gradient(180deg, #474747, #1d1d1d);
    border-color: #8e8e8e;
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.2);
}

.carrier-option img {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.carrier-option span {
    display: block;
    color: #fff;
    font-size: 14px;
}

.ip_id::placeholder {
    color: #666;
}
.pop_join_box .ip_id:hover::placeholder {
    color: #aaa;
}


select.ip_id {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.code_info {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
    text-align: left;
}

.ip_sm {
    width: 100%;
    height: 52px;
    line-height: 52px;
    margin: 30px 0;
    cursor: pointer;
    padding: 0;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #a100fe;
    border-radius: 4px;
    background: linear-gradient(180deg, #a100fe 0, #560087);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2),
    inset 0 0 10px rgba(0, 255, 157, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ip_sm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #a100fe 0, #560087);
    pointer-events: none;
}

.ip_sm:hover {
    background: linear-gradient(180deg, #d83636 0, #4d1212);

}

.ip_sm:active {
    background: linear-gradient(180deg, #a100fe 0, #560087);
    transform: scale(0.98);
}

@media screen and (max-width: 768px) {
    .carrier-popup-content {
        width: 80%;
        padding: 15px;
        max-height: 70vh;
    }

    .carrier-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .carrier-option {
        padding: 15px;
    }

    .carrier-option span {
        font-size: 12px;
    }

    .pop_join_box {
        width: 85%;
        padding: 25px;

    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group {
        width: 100%;
        max-width: none;
    }

    .gender-buttons {
        width: 72%;
    }

    .verify-btn,
    .phone-verify-btn {
        right: 23px;
        width: 50px;
    }

}

.youth{
    font-size: 15px;
    color: #FF0000;
}

.login-link {
    text-align: center;
    margin: 20px 0;
}

.login-link a {
    color: #00ff9d;
    text-decoration: none;
    font-size: 14px;
}

.pop_join_ttl img {
    width: 18%;
    margin-top: -10px;
}

.phone-verify-content {
    padding: 20px;
    text-align: center;
}

.timer {
    color: #00ff9d;
    font-size: 18px;
    margin-bottom: 20px;
}

.verify-input-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.verify-code {
    flex: 1;
}

.verify-confirm-btn {
    width: 80px;
    height: 43px;
    background-color: #00ff9d;
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.verify-message {
    color: #ff0000;
    font-size: 14px;
    margin-top: 10px;
}

.phone-verify-btn.verified {
    display: none;
}

.fa-check {
    color: #e51f1f;
}

.bank_popup_box {
    width: 100%;
    height: 65px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.label-with-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

label[for="id"],
label[for="nickName"],
label[for="password"],
label[for="password-confirm"] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.id-message,
.nick-message,
.pw-message,
.pwchk-message {
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
}

.id-message.error,
.nick-message.error,
.pw-message.error,
.pwchk-message.error {
    color: #ff0000;
}

.id-message.success,
.nick-message.success,
.pw-message.success,
.pwchk-message.success {
    color: #00ff9d;
}
.close_join_pop {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.close_join_pop:hover {
    transform: rotate(90deg);
}

.close_join_pop .fa-times {
    font-size: 24px;  /* 아이콘 크기 증가 */
    color: #ffffff;
}


/* 무기명회원가입 버튼 스타일 */
.anonymous-join-wrapper {
    text-align: center;
    margin: 20px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.anonymous-join-btn {
    background: linear-gradient(to bottom, rgb(247, 222, 0) 1%, rgba(243, 166, 28, 0.79) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anonymous-join-btn:hover {
    background: linear-gradient(180deg, #d83636 0, #4d1212);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 모달 로딩 스타일 */
.modal-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-loading.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #63E6BE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 생년월일 선택 스타일 추가 */
.birth-select-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}
.birth-select-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
}

.birth-select {
    flex: 1;
    padding: 12px 40px 12px 15px;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    background-color: #2a2a2a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.birth-select {
    flex: 1;
    padding: 12px 40px 12px 15px;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    background-color: #2a2a2a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.birth-select:hover {
    border-color: #63E6BE;
    background-color: #333;
}

.birth-select:focus {
    border-color: #63E6BE;
    box-shadow: 0 0 0 2px rgba(99, 230, 190, 0.2);
}

.birth-select option {
    background-color: #2a2a2a;
    color: #fff;
    padding: 10px;
}

.birth-label {
    color: #999;
    font-size: 14px;
    margin: 0 5px;
    min-width: 20px;
}

/* 기존 input 스타일과 매칭 */
.form-group {
    background-color: transparent;
}

/* 미성년자 메시지 스타일 */
.youth {
    font-size: 14px;
    margin-left: 10px;
    font-weight: bold;
}
/* 모달 컨테이너에 스크롤 추가 */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
    background: rgba(0, 0, 0, 0.5); /* 배경색 추가 */
    z-index: 1000;
}

/* 회원가입 박스 중앙 정렬 및 스크롤 설정 */
.pop_join_box {
    position: relative;
    margin: 20px auto;
    max-height: calc(100vh - 40px); /* 화면 높이에서 여백 제외 */
    overflow-y: auto; /* 내용이 넘치면 스크롤 생성 */
    -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
}

/* 작은 화면에서 여백 조정 */
@media screen and (max-height: 700px) {
    .modal-container {
        padding: 10px;
    }

    .pop_join_box {
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }
}

/* 아주 작은 화면 (모바일 가로모드 등) */
@media screen and (max-height: 500px) {
    .modal-container {
        padding: 0;
    }

    .pop_join_box {
        margin: 0 auto;
        max-height: 100vh;
        border-radius: 0;
    }
}

.modal-container::-webkit-scrollbar-track,
.pop_join_box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.modal-container::-webkit-scrollbar-thumb:hover,
.pop_join_box::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 230, 190, 0.7);
}

/* body 스크롤 방지 (모달 열릴 때) */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
