/*********************
   회원 기능 전용 스타일
   - login.php / join.php / findId.php / findPw.php / settings.php 에서만 로드
   - 기존 페이지(reset_head.php)에는 포함하지 않음 → 다른 화면 영향 없음
*********************/

/* === 페이지 공통 레이아웃 === */
.auth-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 2.4rem;
}

/* === 폼 === */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    width: 100%;
}
#findIdForm, #findPwForm, #resetPwForm {
    height: 100%;
}
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.auth-label {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1;
}

/* 입력 박스: 흰 배경 + 라이트 보더 (시안 기준) */
.auth-input-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 2rem;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 1rem;
}
/* hidden 속성이 display:flex보다 우선순위가 낮아 무시되는 문제 방지
   (인증번호 행은 인증요청 클릭 전까지 숨김) */
.auth-input-row[hidden] {
    display: none;
}
.auth-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    padding: 0;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.4;
}
.auth-input::placeholder {
    color: #C2C1C1;
}
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
    box-shadow: 0 0 0px 1000px #fff inset;
}
/* 입력 박스 우측 텍스트 버튼 (인증요청/재요청/중복확인) */
.auth-inline-btn {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-dark);
    cursor: pointer;
    line-height: 1;
}
.auth-inline-btn:disabled {
    color: var(--color-light-gray);
    cursor: default;
}

/* 인증요청 옆 남은시간 카운트다운 */
.auth-timer {
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 500;
    color: #FF0000;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* 유효성 안내 문구 */
.auth-msg {
    font-size: 1.5rem;
    line-height: 1;
}
.auth-msg--ok  {color: #00B70C;}
.auth-msg--err {color: #FF0000;}

/* 인증번호(재요청) 행 fadeIn */
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(-0.4rem); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-fade-in {
    animation: authFadeIn 0.3s ease;
}

/* 성별 토글 */
.gender-toggle {
    display: flex;
    gap: 1rem;
}
.gender-toggle__btn {
    flex: 1;
    padding: 2rem;
    border: 1px solid #ededed;
    border-radius: 0.8rem;
    background: #fff;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-light-gray);
    cursor: pointer;
}
.gender-toggle__btn.is-active {
    background: var(--bg-light-gray);
    color: var(--color-dark);
}

/* 개인정보 수집·이용 동의 (정책 3) */
.join-agree__check {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
}
.join-agree__check input {
    width: 1.8rem;
    height: 1.8rem;
    accent-color: var(--bg-dark);
}
.join-agree__check em {
    font-style: normal;
    font-weight: 400;
    color: var(--color-gray);
}
.join-agree__box {
    padding: 1.4rem 1.6rem;
    background: var(--bg-light-gray);
    border-radius: 0.8rem;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-gray);
    line-height: 1.7;
}

/* 폼 하단 제출 버튼 영역: 화면 아래 붙이기 */
.auth-submit {
    margin-top: auto;
    /* padding-top: 3rem; */
}

/* === login.php === */
.login-wrap main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.login-section {
    justify-content: center;
    gap: 5rem;
    padding-top: 0;
}
.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}
.login-logo img {
    max-width: 20.3rem;
    height: auto;
}
.login-logo p {
    font-size: 1.3rem;
    color: var(--color-gray);
}
.login-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    color: var(--color-gray);
    margin-top: 3rem;
}
.login-links a {
    color: #a6a6a6;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
}
.login-links .divider {
    color: var(--border-selected);
    font-size: 1.5rem;
}
.login-join {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.4rem;
}
.login-join span {
    font-size: 1.5rem;
    color: #a6a6a6;
    font-weight: 500;
}
.login-join a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

/* === 완료 화면 (가입완료 / 아이디찾기 결과 / 비밀번호 수정완료) === */
.auth-done {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    text-align: center;
}
.auth-done__icon {
    width: 4.8rem;
    height: 4.8rem;
    margin-bottom: 1.2rem;
}
.auth-done__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-top: 1rem;
}
.auth-done__sub {
    font-size: 1.5rem;
    color: var(--color-dark);
    font-weight: 400;
}
.auth-done__id {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 0.1em;
}
.auth-done__btn {
    width: 100%;
    margin-top: 7.3rem;
}

/* === settings.php === */
.settings-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.settings-menu li {
    border-bottom: 1px solid var(--border);
}
.settings-menu li:first-child .settings-menu__item {
    padding-top: 0;
}
.settings-menu__item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 2.4rem 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}
.settings-menu__item .icon {
    flex-shrink: 0;
    width: 1.8rem;
    height: 1.8rem;
}
.settings-menu__item span {
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 600;
    color: #747474
}

/* === 확인 모달 (로그아웃/회원탈퇴) === */
.member-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.member-modal-overlay[hidden] {
    display: none;
}
.member-modal {
    width: 100%;
    max-width: 36rem;
    background: #fff;
    border-radius: 1.2rem;
    padding: 2.6rem 3.4rem;
}
.member-modal__title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-dark);
}
.member-modal__text {
    margin-top: 1rem;
    font-size: 1.3rem;
    color: var(--color-gray);
    line-height: 2;
    font-weight: 300;
}
.member-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 3rem;
}
.member-modal__btn {
    padding: 0.9rem 1.8rem;
    border: 0;
    border-radius: 0.8rem;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}
.member-modal__btn--cancel {
    background: #d4d4d4;
    color: #fff;
}
.member-modal__btn--ok {
    background: var(--bg-dark);
    color: #fff;
}
