/* 1. 메인 레이아웃 */
main {
    max-width: 800px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 975px;
}

h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 50px;
    color: black;
}

section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 2. 비밀번호 변경 폼 (너비 500px 고정) */
#pwSearchForm {
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 3. 입력 섹션 레이아웃 */
.signUp-input-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

h3 {
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    text-align: left;
}

.signUp-input {
    width: 100%;
    display: flex;
    gap: 10px;
}

/* 4. 입력 필드 스타일 */
input[type="text"], 
input[type="password"], 
input[type="email"],
input[type="tel"] {
    flex: 1;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: #452829;
}

/* 5. 유효성 검사 메시지 */
.signUp-message {
    width: 100%;
    font-size: 13px;
    margin-top: 8px;
    text-align: left;
}

.confirm { color: green !important; }
.error { color: red !important; }

/* 6. 버튼 스타일 (#452829 색상 통일) */

/* 인증번호 받기/인증하기 버튼 */
button[type="button"] {
    height: 48px;
    padding: 0 20px;
    background-color: #452829;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

button[type="button"]:disabled {
    height: 48px;
    padding: 0 20px;
    background-color: #b8b1b1;
    color: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: default;
    white-space: nowrap;
    opacity: 0.7;
}

/* 하단 비밀번호 변경 메인 버튼 */
#pwSearchBtn {
    width: 100%;
    height: 60px;
    background-color: #452829;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 30px;
    cursor: pointer;
}



/* ================================================
   반응형 미디어 쿼리 (4단계)
================================================ */

/* --- Tablet (768px ~ 1199px) --- */
@media (max-width: 1199px) {
    main {
        max-width: 700px;
    }
}

/* --- Mobile L (480px ~ 767px) --- */
@media (max-width: 767px) {
    main {
        max-width: 95%;
        margin: 36px auto;
        padding: 0 16px;
    }

    h1 {
        font-size: 26px;
        margin-bottom: 36px;
    }

    #pwSearchForm {
        width: 100%;
    }

    .signUp-input {
        flex-direction: column;
    }

    button[type="button"] {
        width: 100%;
    }

    #pwSearchBtn {
        height: 52px;
        font-size: 16px;
    }
}

/* --- Mobile S (~ 479px) --- */
@media (max-width: 479px) {
    main {
        margin: 24px auto;
        padding: 0 12px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 28px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"] {
        height: 44px;
        font-size: 14px;
    }

    button[type="button"] {
        height: 44px;
        font-size: 13px;
    }

    #pwSearchBtn {
        height: 48px;
        font-size: 15px;
        margin-top: 24px;
    }
}
