/* AnatoBase — 로그인/회원가입 팝업(공용) 스타일. global/auth-modal.js 와 짝.
   학습하기(content/index.html)와 제품 페이지(pages/*.html)가 같은 파일을 쓴다 — 복붙 금지.
   (2026-09-13 content/css/style.css 에서 이관. .pwc-*·.purchase-modal-card·.mypage-modal-card 는 이 overlay 위에 얹는 학습하기 전용이라 style.css 에 남김) */
.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.auth-modal-overlay.active {
    display: flex;
}
.auth-modal-card {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    padding: 40px 36px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}
.auth-modal-card h1 { font-size: 1.5rem; font-weight: 700; text-align: center; margin: 0 0 4px; color: #1a1a1a; }
.am-subtitle { text-align: center; color: #888; font-size: 0.9375rem; margin-bottom: 24px; }
.am-social { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.am-social .social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px; border-radius: 8px; font-size: 0.9375rem; font-weight: 500; border: 1px solid #ddd; cursor: pointer; transition: box-shadow 0.2s, transform 0.2s; font-family: inherit; }
.am-social .social-btn:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); transform: translateY(-1px); }
.am-social .social-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.am-social .social-google { background: #fff; color: #333; }
.am-social .social-kakao { background: #FEE500; color: #191919; border-color: #FEE500; }
.am-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #aaa; font-size: 0.8125rem; }
.am-divider::before, .am-divider::after { content: ''; flex: 1; height: 1px; background: #e5e5e5; }
.am-field { margin-bottom: 14px; }
.am-field label { display: block; font-size: 0.8125rem; font-weight: 600; color: #333; margin-bottom: 6px; }
.am-field input { width: 100%; padding: 11px 14px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 0.9375rem; color: #1a1a1a; background: #fff; box-sizing: border-box; font-family: inherit; transition: border-color 0.2s; }
.am-field input::placeholder { color: #bbb; }
.am-field input:focus { outline: none; border-color: #bb5d5d; box-shadow: 0 0 0 3px rgba(187,93,93,0.1); }
.am-submit { width: 100%; padding: 13px; font-size: 1rem; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; background: #bb5d5d; color: #fff; font-family: inherit; transition: background 0.2s; }
.am-submit:hover { background: #a34e4e; }
.am-email-display { padding: 10px 14px; border-radius: 8px; background: #f8f7f6; border: 1px solid #eee; font-size: 0.9375rem; color: #333; margin-bottom: 14px; }
.am-forgot { text-align: center; font-size: 0.8125rem; color: #aaa; margin-top: 12px; }
.am-forgot a { color: #bb5d5d; text-decoration: none; }
.am-forgot a:hover { text-decoration: underline; }
.am-back { display: flex; align-items: center; gap: 4px; margin-top: 16px; background: none; border: none; cursor: pointer; font-size: 0.8125rem; color: #aaa; font-family: inherit; }
.am-back:hover { color: #333; }
/* 🔑 비밀번호 변경 모달(app.js openPasswordChangeModal) — 로그인 모달과 같은 부품(.am-*) 재사용 */
.auth-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.auth-modal-close:hover { background: rgba(0,0,0,0.05); }
