/* ==========================================================================
   PAGE: LOGIN (로그인 페이지)
   ========================================================================== */

/* 1. 메인 컨테이너 (화면 중앙 정렬) */
main {
    width: 100%;
    min-height: calc(100vh - 300px); /* 헤더/푸터 제외 최소 높이 확보 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9; /* 전체 배경은 아주 연한 회색 */
    padding: 60px 20px;
}

/* 2. 로그인 박스 (흰색 카드) */
.login-wrap {
    width: 100%;
    max-width: 480px; /* 적절한 카드 너비 */
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* 부드러운 그림자 */
    border: 1px solid #eee;
    text-align: center;
}

/* 타이틀 */
.login-wrap h1 {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
}
.login-wrap h1 a {
    color: var(--c-primary); /* 쇼핑몰 이름 강조 */
    text-decoration: none;
}

/* ===== 소셜 로그인 섹션 (상단 배치) ===== */
.social-login-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 54px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-social img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 네이버 로그인 버튼 */
.btn-naver {
    background-color: #03C75A;
    color: #fff;
    border: none;
}

.btn-naver:hover {
    background-color: #02b351;
    box-shadow: 0 4px 12px rgba(3, 199, 90, 0.3);
}

/* 카카오 로그인 버튼 */
.btn-kakao {
    background-color: #FEE500;
    color: #000000;
    border: none;
}

.btn-kakao:hover {
    background-color: #fdd835;
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3);
}

/* 구분선 (또는) */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 15px;
    font-weight: 500;
}

/* 3. 입력 필드 그룹 (ID/PW) */
.id-box, .pw-box {
    margin-bottom: 20px;
    text-align: left;
}

.id-box p, .pw-box p {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    display: block; /* 라벨처럼 보이게 */
}

/* 실제 인풋창 */
.login-wrap input[type="text"],
.login-wrap input[type="password"] {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 15px;
    color: #111;
    transition: all 0.2s ease;
    box-sizing: border-box; /* 패딩 포함 크기 계산 */
}

.login-wrap input:focus {
    border-color: var(--c-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 127, 59, 0.1);
}
.login-wrap input::placeholder {
    color: #ccc;
    font-size: 14px;
}

/* 4. 아이디/비번 찾기 링크 */
.info_box {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.info-search-box a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    position: relative;
    margin-left: 10px;
}

/* 구분선 (|) 추가 */
.info-search-box a:not(:last-child)::after {
    content: '';
    display: block;
    width: 1px;
    height: 10px;
    background-color: #ddd;
    position: absolute;
    top: 4px;
    right: -8px;
}

.info-search-box a:hover {
    color: #333;
    text-decoration: underline;
}

/* 5. 로그인 버튼 */
#seclogin_btn {
    width: 100%;
    height: 54px;
    background-color: var(--c-primary);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 30px;
    transition: background-color 0.2s;
    box-shadow: 0 4px 10px rgba(59, 127, 59, 0.2);
}

/* 6. 회원가입 유도 (.join-wrap) */
.join-wrap {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 20px;
}

.join-txt-box {
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* 회원가입 텍스트 버튼 */
.mem-reg-btn {
    color: var(--c-primary);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* 7. 이전 소셜 로그인 박스 숨김 */
.join-sns-box {
    display: none;
}

/* ==========================================================================
   [비회원 주문 유도 카드] (로그인 폼 하단 별도 섹션)
   ========================================================================== */
.guest-order-card {
    width: 100%;
    max-width: 480px;
    margin-top: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.guest-order-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.guest-order-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* 비회원 주문하기 버튼 (Outline 스타일) */
.btn-guest-order {
    display: block;
    width: 100%;
    height: 48px;
    line-height: 46px; /* border 고려 */
    border: 1px solid #333;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-guest-order:hover {
    background-color: #f9f9f9;
    border-color: #111;
}

.guest-order-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}


/* --- 반응형 (모바일) --- */
@media (max-width: 768px) {
    main {
        padding: 40px 15px;
        background-color: #fff; /* 모바일은 흰 배경이 더 깔끔할 수 있음 */
    }
    
    .login-wrap {
        box-shadow: none; /* 모바일은 평면적으로 */
        border: none;
        padding: 20px;
    }
    
    .guest-order-card {
        border: none;
        background-color: #f9f9f9; /* 구분을 위해 배경색 추가 */
    }

    .btn-social {
        font-size: 15px;
        height: 50px;
    }

    .btn-social img {
        width: 22px;
        height: 22px;
    }
}




/* ==========================================================================
   PAGE: MEMBER FIND (아이디/비번 찾기)
   ========================================================================== */

/* 1. 배경 및 중앙 정렬 */
.member-find-container {
    width: 100%;
    min-height: calc(100vh - 300px);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    padding: 60px 20px;
}

/* 2. 카드 박스 디자인 */
.find-wrap {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    text-align: left;
}

/* 3. 헤더 타이틀 */
.find-header {
    text-align: center;
    margin-bottom: 30px;
}
.find-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}
.find-header p {
    font-size: 14px;
    color: #888;
    word-break: keep-all;
    line-height: 1.4;
}

/* 4. 폼 스타일 */
.find-form .form-group {
    margin-bottom: 20px;
}
.find-form label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

/* 기본 인풋 */
.find-form input[type="text"],
.find-form input[type="tel"] {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 15px;
    color: #111;
    box-sizing: border-box;
    transition: 0.2s;
}
.find-form input:focus {
    border-color: var(--c-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 127, 59, 0.1);
}

/* 5. 버튼이 있는 인풋 그룹 (휴대폰 인증 등) */
.input-with-btn {
    display: flex;
    gap: 8px;
}
.input-with-btn input {
    flex: 1; /* 남은 공간 차지 */
}
.input-with-btn .btn-dark {
    width: 100px;
    height: 50px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.input-with-btn .btn-dark:hover { background-color: #111; }

/* 6. 아이디 찾기 제출 버튼 */
.btn-primary-full {
    width: 100%;
    height: 54px;
    background-color: var(--c-primary);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(59, 127, 59, 0.2);
    transition: 0.2s;
}

/* 7. 결과 영역 (JS로 li 추가됨) */
.find-result-list {
    margin-top: 20px;
    list-style: none;
}
.find-result-list li {
    background-color: #f0f9f0; /* 연한 초록 배경 */
    border: 1px solid var(--c-primary);
    color: #333;
    padding: 15px;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    margin-bottom: 10px;
}
.find-result-list li b {
    color: var(--c-primary);
    font-size: 18px;
}
/* 소셜 로그인 안내 등 경고 스타일 */
.find-result-list li.alert-warning {
    background-color: #fff8e1;
    border-color: #ffc107;
    color: #856404;
}

/* 8. 하단 링크 (로그인 | 비번찾기) */
.find-links {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #888;
}
.find-links a { color: #666; }
.find-links a:hover { text-decoration: underline; color: #111; }
.find-links .bar { margin: 0 10px; color: #ddd; }


/* --- 반응형 (Mobile) --- */
@media (max-width: 768px) {
    .member-find-container { padding: 20px; }
    .find-wrap { padding: 30px 20px; }
    .input-with-btn .btn-dark { width: 80px; } /* 버튼 크기 축소 */
}

/* ==========================================================================
   PAGE: RESET PASSWORD (비밀번호 재설정)
   ========================================================================== */

/* 1. 유틸리티 클래스 (JS 토글용) */
.hidden {
    display: none !important;
}

/* 2. 비밀번호 재설정 결과 메시지 */
.find-result-msg {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--c-primary);
    font-weight: 700;
}

/* 3. 비밀번호 입력 영역 스타일 보강 */
/* 기존 .form-group 스타일을 그대로 상속받지만, 비밀번호 필드 특화 */
#rpw_pw_area {
    border-top: 1px dashed #eee;
    margin-top: 20px;
    padding-top: 20px;
    animation: fadeIn 0.3s ease-out; /* 나타날 때 부드럽게 */
}

#rpw_pw_area .form-group input {
    letter-spacing: 2px; /* 비밀번호 점 간격 넓게 */
    font-family: sans-serif;
}

/* 애니메이션 정의 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}