
.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: 45px;
    width: 970px;
    margin: 0 auto;
}

.pop_join_box .ip_id {
    width: 100%
}

.pop_join_box .ip_sm {
    color: #fff8f8;
      background: linear-gradient(180deg, var(--color-start), var(--color-end));

}
.pop_join_box .ip_sm {
    width: 50%;
}
.pop_join_ttl {
    margin-bottom: 20px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 65px;
    margin-bottom: 30px;
    width: 100%;
}

.form-group {
    flex: 1;
    position: relative;
    width: 100%;
    max-width: calc(50% - 10px);
}

label {
    display: block;
    margin-bottom: 8px;
    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(180deg, var(--color-start), var(--color-end));
    color: #fff !important;
    outline: none;
    border-color: #2517d7ad;
}

/* 자동완성 시에도 배경색 유지 */
.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(180deg, #2d56dd 0, #1e40b1);
    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(180deg, var(--color-start), var(--color-end)); /* 색상 반전 */
    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(180deg, var(--color-start), var(--color-end));
    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: 33%;
    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;
}
