/*
============================================================
1. 기본 설정 및 컨테이너 스타일
============================================================
*/

/* 폰트 및 배경색 등 기본 HTML 설정 */
body {
    background-color: #f0f2f5; /* 밝은 회색 배경 */
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif; /* 한국어 폰트 적용 */
}

/* 모바일 화면 크기(최대 480px) 제한 및 중앙 정렬 컨테이너 */
.mobile-container {
    max-width: 480px;
    width: 100%; /* 너비를 100%로 설정하여 여백 계산 공간 확보 */
    margin: 0 auto; /* PC 화면에서 중앙 정렬 */
    background-color: #fff; /* 컨테이너 내부 배경색 */
    min-height: 100vh; /* 최소 높이: 전체 화면 높이 */
    position: relative;

}

/*
============================================================
2. 헤더 (Sticky) 스타일
============================================================
*/

/* 고정(Sticky) 헤더 설정 */
.form-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    padding: 0 30px;
    height: 55px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;

    /* Sticky 헤더의 중앙 정렬 및 크기 고정 */
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    left: 0; /* Sticky 위치 잡기 (좌측 기준) */
    right: 0; /* Sticky 위치 잡기 (우측 기준) */
}

/* 헤더 아래 8px 구분 라인 (가상 요소) */
.form-header::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px; /* 헤더 border-bottom(1px) 포함 8px 간격 */
    height: 8px;
    background-color: #eee;
    z-index: -1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* 헤더 내부 정렬 */
.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between; /* 좌우 요소 배치 */
    align-items: center;
}

/* 뒤로가기 버튼 스타일 */
.btn-back {
    font-size: 22px;
    color: #444;
    text-decoration: none;
    line-height: 1;
}

/* 헤더 제목 텍스트 스타일 */
.header-title-text {
    font-size: 15px;
    font-weight: 500;
    color: #444;
}

/*
============================================================
3. 본문 (Content) 스타일
============================================================
*/

/* Sticky 헤더 높이(55px + after 8px = 63px) 만큼 공간을 띄우는 스페이서 */
.header-spacer {
    height: 64px; /* 1px 여유를 둔 스페이서 */
    width: 100%;
    background-color: #fff;
}

/* 폼 본문 영역 패딩 및 중앙 정렬 */
.form-body {
    padding: 50px 35px;
    text-align: center;
}

/* 페이지 아이콘 스타일 */
.page-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
    color: #5b6f83;
}

/* 안내 텍스트 스타일 */
.info-text {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}

/* 비번찾기 텍스트 스타일 */
.pw_search {

    margin-top: 20px;
    
}

.pw_link {
    color: #777;
    font-size: 14px;
    text-decoration:none;
}



/* [입력 필드 커스텀] */
.form-control { 
    padding: 12px; 
    font-size: 15px; 
    margin-bottom: 15px !important; 
    text-align: center; 
    border-radius: 8px;
    border-color: #ddd;
}
/* 🎯 Placeholder 텍스트 색상 톤다운 */
.form-control::placeholder {
    color: #a0a0a0;
    opacity: 1;
}

/* 웹킷 기반 브라우저 (Chrome, Safari)용 */
.form-control::-webkit-input-placeholder {
    color: #a0a0a0;
}

/* 모질라 기반 브라우저 (Firefox)용 */
.form-control::-moz-placeholder {
    color: #a0a0a0;
    opacity: 1;
}

/* IE용 */
.form-control:-ms-input-placeholder {
    color: #a0a0a0;
}

/*
* 🔥 부트스트랩 충돌 해결: !important를 사용하여
* 포커스 시 플레이스홀더가 사라지도록 강제 적용합니다.
*/
.form-control:focus::placeholder {
    color: transparent !important; /* !important 추가 */
}
.form-control:focus::-webkit-input-placeholder {
    color: transparent !important; /* !important 추가 */
}
.form-control:focus::-moz-placeholder {
    color: transparent !important; /* !important 추가 */
}
.form-control:focus:-ms-input-placeholder {
    color: transparent !important; /* !important 추가 */
}

/*
============================================================
5. 버튼 스타일
============================================================
*/

/* 인증/제출 버튼 스타일 */
.btn-auth-submit {
    background-color: #2c3e50; /* 다크 블루/그레이 */
    border-color: #2c3e50;
    color: white;
    font-weight: 600;
    padding: 14px 0;
    border-radius: 8px;
    transition: 0.2s; /* 호버/클릭 시 부드러운 전환 효과 */
}