/* ========================================
   Modern Minimal Black & White OTP Design
   ======================================== */

/* OTP 버튼 스타일 */
.google_otp_wrap {}
.google_otp_btn,
#google_otp_print .google_otp_btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #000;
    font-weight: 600;
    font-size: 14px;
    background: #000;
    color: #fff;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.google_otp_btn:hover,
#google_otp_print .google_otp_btn:hover {
    background: #fff;
    color: #000;
    border-color: #000;
}

.register_form_inner .google_otp_wrap {
    margin-bottom: 24px;
}

/* 모달 기본 스타일 재정의 */
#google-otp-modal.remodal {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 48px 40px;
    max-width: 560px;
}

/* 닫기 버튼 - 미니멀 X */
#google-otp-modal .connect-close {
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
    padding: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}
#google-otp-modal .connect-close:hover {
    transform: rotate(90deg);
    color: #666;
}
#google-otp-modal .connect-close .fa {
    margin: 0;
}
#google-otp-modal .connect-close .txt {
    position: absolute;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}

/* 모달 콘텐츠 */
#google-otp-modal .connect-fg {
    text-align: left;
}

/* 제목 */
#google-otp-modal .connect-fg .connect-title {
    margin: 0 0 40px 0;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: #000;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

/* 섹션 제목 */
#google-otp-modal h3 {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 32px 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
}

#google-otp-modal .top_border {
    border-top: none;
    padding-top: 0;
}

/* 앱 다운로드 버튼 */
#google-otp-modal .btn-group {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
}

#google-otp-modal .btn.btn-raised {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    line-height: 1.4;
    text-align: center;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background-color: #000;
    border: 2px solid #000;
    box-shadow: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#google-otp-modal .btn.btn-raised:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
}

/* QR 코드 영역 */
#google-otp-modal .qrcode_image_wrap {
    margin: 24px 0;
    text-align: center;
    background: #f8f8f8;
    padding: 24px;
    border: 1px solid #e0e0e0;
}

#google-otp-modal .qrcode_image_wrap .qrcode_scan {
    position: relative;
    display: inline-block;
    min-width: 220px;
    min-height: 220px;
    padding: 16px;
    background: #fff;
    border: 2px solid #000;
}

#google-otp-modal .qrcode_image_wrap .qrcode_scan .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #000;
    font-size: 13px;
}

#google-otp-modal .qrcode_image_wrap .qrcode_scan img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Secret 키 */
#google-otp-modal .secret_code_wrap {
    margin: 16px 0;
    padding: 16px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    text-align: center;
}

#google-otp-modal .secret_code_wrap > span {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

#google-otp-modal .secret_code {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    color: #000;
    letter-spacing: 2px;
}

/* OTP 입력 폼 */
#google-otp-modal .otp_code_inputs {
    margin: 24px 0 0 0;
    width: 100%;
    text-align: left;
}

#google-otp-modal .otp_code_inputs p {
    margin: 0 0 16px 0;
}

#google-otp-modal .otp_code_inputs p label {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#google-otp-modal .otp_code_inputs p label .sound_only {
    position: absolute;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}

#google-otp-modal .otp_code_inputs .lg_otp {
    width: 100%;
    display: block;
}

#google-otp-modal .otp_code_inputs .frm_input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: #000;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    transition: all 0.3s ease;
    letter-spacing: 8px;
    text-align: center;
}

#google-otp-modal .otp_code_inputs .frm_input:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

#google-otp-modal .otp_code_inputs .otp_register {
    width: 100%;
    height: 56px;
    font-size: 14px;
    font-weight: 700;
    margin: 24px 0 0 0;
    cursor: pointer;
    display: block;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#google-otp-modal .otp_code_inputs .otp_register:hover {
    background: #fff;
    color: #000;
    border-color: #000;
}

#google-otp-modal .otp_code_inputs .otp_register:active {
    transform: translateY(1px);
}

/* Content 설명 박스 */
#google-otp-modal .connect-fg .content-desc {
    margin: 24px 0 0 0;
    padding: 16px;
    border: 1px solid #e0e0e0;
    background: #f8f8f8;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

#google-otp-modal .connect-fg .content-desc.top15 {
    margin-top: 16px;
}

/* HTML 스크롤 유지 */
html.remodal-is-locked {
    overflow-y: scroll !important;
}

/* OTP 제거 페이지 */
#remove_otp #mb_hp_label {
    display: inline-block;
    margin-left: 10px;
}

#remove_otp p {
    line-height: 1.6;
}

#remove_otp #mb_email {
    margin: 10px 0;
}

/* 반응형 디자인 */
@media only screen and (max-width: 640px) {
    #google-otp-modal.remodal {
        padding: 32px 24px;
    }

    #google-otp-modal .connect-fg .connect-title {
        font-size: 22px;
        margin-bottom: 32px;
    }

    #google-otp-modal h3 {
        font-size: 12px;
        margin: 24px 0 12px 0;
    }

    #google-otp-modal .btn-group {
        flex-direction: column;
        gap: 8px;
    }

    #google-otp-modal .qrcode_image_wrap {
        padding: 16px;
    }
}

@media only screen and (min-width: 641px) {
    #google-otp-modal.remodal {
        max-width: 560px;
    }

    #google-otp-modal.remodal.max400 {
        max-width: 480px;
    }
}