/* 모달이 열려 있을 땐 글로벌 에러 숨김 */
body.modal-open #Global-error {
    display: none !important;
}

.formSection {
    max-width: 463px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.loginTitle {
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.formCard {
    width: 100%;
    padding: 24px;
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    background: #fff;
}

.field {
    display: grid;
    margin-bottom: 16px;
    position: relative;
}

.inputGroup .field:nth-of-type(2) {
    margin-bottom: 12px;
}

.label {
    font-size: 13px;
    font-weight: 500;
    color: #4E4E4E;
    position: absolute;
    top: 10px;
    left: 12px;
}

.textbox {
    width: 100% !important;
    min-height: 52px !important;
    padding: 29px 12px 8px !important;
    border: 1px solid #E9E9E9 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
    line-height: unset !important;
    background-color: unset !important;
    margin: 0 !important;
}

.textbox:focus {
    border-color: #2b6cff55 !important;
    box-shadow: 0 0 0 4px #3857ff22 !important;
    outline: none !important;
}

.textbox.error {
    border-color: #FB7563 !important;
}

/* 전역 오류 바 */
/* 기존 */
.global-error {
    margin-top: 10px;
    padding: 10px 12px;
    color: #FA533C;
    font-size: 13px;
    line-height: 15px;
    font-weight: 500;
    display: none;
    text-align: center;
}

    .global-error.show {
        display: block;
    }

/* 권장: ID로 명시 */
#Global-error {
    margin-top: 10px;
    padding: 10px 12px;
    color: #FA533C;
    font-size: 13px;
    line-height: 15px;
    font-weight: 500;
    display: none;
    text-align: center;
}

    #Global-error.show {
        display: block;
    }

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #686868;
    font-size: 14px;
    font-weight: 500;
}

.loginButton {
    width: 100%;
    height: 52px;
    margin-top: 16px;
    background: #0D1B4C;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Urbanist';
}

    .loginButton:hover {
        background: rgba(13, 27, 76, 0.80);
    }

    .loginButton:disabled {
        background: rgba(13, 27, 76, 0.20);
        cursor: no-drop;
    }

.actionRow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: #686868;
    font-weight: 500;
}

    .actionRow .divider {
        width: 1px;
        height: 18px;
        background: rgba(0, 0, 0, 0.14);
        display: inline-block;
    }

.link {
    color: #4B7DBC;
    font-weight: 600;
    text-decoration: none;
}

    .link:hover {
        text-decoration: underline;
    }

.validation {
    display: none !important;
}

/* Remember me 체크박스 – 네이비 박스 + 흰 체크(앞 짧고 뒤 길게) */
.checkbox input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
}

/* 체크되지 않은 기본 아이콘 */
.checkbox input[type="checkbox"] {
    background-image: url('/wp-content/themes/dt-the7-child/inc/img/check251104.svg'); /* 기본 체크 안된 상태 아이콘 */
}

    /* 체크된 상태 */
    .checkbox input[type="checkbox"]:checked {
        background-image: url('/wp-content/themes/dt-the7-child/inc/img/checked251104.svg'); /* 체크된 아이콘 */
    }

    /* 포커스 접근성 */
    .checkbox input[type="checkbox"]:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px #0e1e4b22;
    }

/* 라벨 간격(선택) */
.checkbox {
    gap: 4px;
}


/* ======================================================================== */
.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-container {
    padding: 40px 32px;
    border-radius: 16px;
    min-width: 480px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
    background-color: #fff;
    margin: 32px;
}

.modal-title {
    color: #1D1E1E;
    text-align: center;
    font-family: Urbanist;
    font-size: 20px;
    font-weight: 700;
    line-height: 100%;
    margin: 0;
}

.modal-paper {
    margin: 12px 0px 16px;
}

.modal-message {
    color:  #4E4E4E;
    text-align: center;
    font-family: Urbanist;
    font-size: 14px;
    font-weight: 500;
    line-height: 140%; /* 19.6px */
    margin: 0px;
}

.modal-action {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.modal-btn {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    min-width: 174px;
    height: 52px;
    padding: 0px 12px;
    font-size: 18px;
    font-weight: 600;
    background: #0D1B4C;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    font-family: 'Urbanist';
    -webkit-appearance: none;
    appearance: none;
}

.modal-btn:hover {
    background: rgba(13, 27, 76, 0.80);
}

.modal-btn:disabled {
    background: rgba(13, 27, 76, 0.20);
    cursor: no-drop;
    color: rgba(255,255,255, 0.6);
}

.modal-btn.btn-red {
    flex: auto;
    border: 2px solid #F83015;
    background:#fff;
    color: #F83015;
}

.modal-btn.btn-red:hover {
    border: 2px solid #FF6651;
    color: #FF6651;
}

.modal-btn.btn-red:disabled {
    border: 2px solid rgba(13, 27, 76, 0.20);
    background:#fff;
    color: rgba(13, 27, 76, 0.4);
}

.modal-btn.btn-gray {
    flex: auto;
    background:#F4F4F4;
    color: #4E4E4E;
}

.modal-btn.btn-gray:hover {
    background:#D1D1D1;
    color: #4E4E4E;
}

.modal-action > .modal-btn:only-child {
    flex: 0 0 100%;
    width: 100%;
    min-width: auto;
}

.modal-action > .modal-btn:nth-child(1):nth-last-child(2),
.modal-action > .modal-btn:nth-child(2):nth-last-child(1) {
    flex: 1 1 0;
    width: auto; 
    min-width: auto;      
}

.modal-action > .modal-btn.btn-red:nth-child(1):nth-last-child(2),
.modal-action > .modal-btn.btn-red:nth-child(2):nth-last-child(1) {
    flex: 1 1 0;
}

/* 반응형 */
@media (min-width: 1280px) {
    .posterImg {
        object-position: center;
    }
}


@media (max-width:767px) {
    .loginTitle {
        display: none;
    }

    .formSection {
        gap: 32px;
    }

    .formCard {
        border: 0px;
        padding-top: 0;
    }
}

@media (max-width:530px) {
    .formSection {
        width: 100%;
        max-width: unset;
    }

    .formCard {
        padding: 0;
    }

    .modal-container {
        padding: 32px 16px;
        border-radius: 12px;
        min-width: calc(100% - 32px);
        margin: 16px;
    }

    .modal-title {
        font-size: 18px;
        font-weight: 700;
    }

    .modal-message {
        color:  #4E4E4E;
        font-size: 13px;
    }

    .modal-action {
        width: 100%;
        flex-direction: column;
        gap: 5px;
        align-items: stretch;
    }

    .modal-btn {
        display: flex;         
        align-items: center;
        justify-content: center;
        width: 100%;
        flex: 0 0 auto;      
        min-height: 48px;     
        height: auto;        
        line-height: 1;        
        font-size: 16px;
    }

    .modal-btn.btn-red {
        flex: 0 0 auto;
    }
}
