/* ──────────────────────────────
   기본 폰트 및 배경 설정
────────────────────────────── */
body.user-common {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0 16px;
    background-color: #f0fff4;
}

/* ──────────────────────────────
   컨테이너
────────────────────────────── */
.user-common .container {
    max-width: 760px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;       /* accordion-style 경계 */
    border-radius: 6px;           /* 더 작게 */
    box-shadow: 0 1px 4px rgba(0,0,0,0.05); /* 가벼운 그림자 */
}

/* ──────────────────────────────
   제목 및 안내문
────────────────────────────── */
.user-common h2, .user-common h5 {
    text-align: center;
    color: #287d55;
    margin-bottom: 10px;
}

.user-common .instructions,
.user-common .form-text,
.user-common .small.text-muted {
    font-size: 0.95em;
    color: #555;
    text-align: center;
}

/* ──────────────────────────────
   입력 라벨
────────────────────────────── */
.user-common label {
    display: block;
    margin-top: 16px;
    color: #265f3c;
    font-weight: 500;
}

.user-common label.required::before {
    content: "* ";
    color: red;
    margin-right: 4px;
}

/* ──────────────────────────────
   입력 필드
────────────────────────────── */
.user-common input,
.user-common select,
.user-common textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}
.user-common input:focus,
.user-common select:focus,
.user-common textarea:focus {
    border-color: #0d6efd;
    outline: none;
}
/* ──────────────────────────────
   에러 메시지
────────────────────────────── */
.user-common .error-message {
    color: red;
    font-size: 0.85em;
    margin-top: 4px;
    display: block;
}

/* ──────────────────────────────
   버튼
────────────────────────────── */
.user-common button,
.user-common .btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: auto; /* accordion 스타일은 full-width보다 auto */
}


.user-common button:hover,
.user-common .btn:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.user-common button:disabled,
.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* ──────────────────────────────
   비밀번호 체크 리스트
────────────────────────────── */
#passwordChecklist span.valid {
    color: green;
    font-weight: 600;
}

#passwordChecklist span.invalid {
    color: #888;
    font-weight: 400;
}

/* ──────────────────────────────
   비밀번호 강도 바
────────────────────────────── */
#passwordStrengthBar {
    height: 8px;
    border-radius: 5px;
    margin-top: 5px;
    width: 0;
    background-color: red;
    transition: width 0.3s ease;
}

/* ──────────────────────────────
   placeholder 스타일 개선
────────────────────────────── */
.user-common input.form-control::placeholder,
.user-common textarea.form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

.user-common input.form-control::-webkit-input-placeholder { color: #adb5bd; }
.user-common input.form-control:-ms-input-placeholder      { color: #adb5bd; }

.user-common input.form-control:placeholder-shown {
    color: #adb5bd;
    /* border-color: #dee2e6; // 테두리를 연하게 하고 싶을 경우 */
}

/* ──────────────────────────────
   반응형 대응
────────────────────────────── */
@media (max-width: 500px) {
    .user-common .container {
        margin: 10px;
        padding: 20px;
    }

    .user-common input, .user-common select, .user-common textarea {
        font-size: 0.95em;
    }

    .user-common button, .user-common .btn {
        font-size: 0.95em;
    }
}
