* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    background: #f3f5f9;


    justify-content: center;

    align-items: center;

    height: 100vh;

}

.signup-box {

    width: 420px;

    background: white;

    padding: 40px;

    border-radius: 15px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);

    animation: fadeUp 0.8s ease;

}

.signup-box h1 {

    text-align: center;

    margin-bottom: 30px;

}

.input-group {

    margin-bottom: 20px;

}

.input-group label {

    display: block;

    margin-bottom: 8px;

}

.input-group input {

    width: 100%;

    padding: 12px;

    border: 1px solid #ccc;

    border-radius: 8px;

}

a {

    display: block;

    margin-top: 20px;

    text-align: center;

    text-decoration: none;

}

body {
    background-image: url("../../img/main.jpg");
    background-size: cover;
    /* 화면 꽉 채우기 */
    background-position: center;
    /* 가운데 정렬 */
    background-repeat: no-repeat;
    /* 반복 안 함 */
    background-attachment: fixed;
    /* 스크롤해도 고정 */
}


@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(50px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

/* 기본 보안 설정 유지하되, 입력창 내부 Ctrl+A 전체선택은 강제 허용 */
input[type="text"],
input[type="email"],
input[type="password"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* 💡 깔끔하고 모던한 UI 디자인 스타일 추가 */
body {
    background-color: #f8f9fa;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.modal-body {
    white-space: pre-line;
}

.signup-box {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
}

.signup-box h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    text-align: center;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    border-color: #0d6efd;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 380px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.25s ease-out;
}

.custom-modal-overlay.active .custom-modal-box {
    transform: translateY(0);
}

.modal-header {
    background: #1e3a8a;
    color: #ffffff;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 26px 20px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    word-break: keep-all;
}

.modal-footer {
    background: #f9fafb;
    padding: 14px 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #f3f4f6;
}

.modal-close-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.modal-close-btn:hover {
    background: #172554;
}


/* ⭐ 핵심: 회원가입 버튼 디자인 개편 */
#signupBtn {
    width: 100%;
    padding: 0.85rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background-color: #0d6efd;
    /* 신뢰감을 주는 동부 ENC 메인 블루 톤 */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

#signupBtn:hover {
    background-color: #0b5ed7;
    /* 마우스 올렸을 때 더 진한 블루 */
}

#signupBtn:active {
    transform: scale(0.98);
    /* 클릭했을 때 살짝 눌리는 느낌의 효과 */
}

/* ⭐ 핵심: 로그인으로 돌아가기 링크의 버튼화 */
.signup-box a {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.signup-box a:hover {
    color: #212529;
    background-color: #e9ecef;
    border-color: #ced4da;
}