/* 파일명: _0_auth/_0_auth.css */
/* 설명: common.css의 뼈대를 확장(Extend)하여 사용하는 인증 영역 전용 스타일 */

/* ================= 1. 레이아웃 확장 (common.css 덮어쓰기) ================= */
.auth-container { max-width: 600px; } /* 로그인/회원가입 폭 제한 */
.mypage-container-width { max-width: 800px; } /* 마이페이지 폭 제한 */
.card-padding-large { padding: 40px; } /* 마이페이지용 넓은 카드 패딩 */

/* ================= 2. 폼 & 버튼 확장 ================= */
.input-tall { height: 45px; } /* 높이가 높은 입력폼 */
.input-readonly { background: #f9fafb !important; color: #9ca3af !important; pointer-events: none; }

.btn-large { width: 200px; height: 50px; font-size: 16px; } /* 큼직한 제출 버튼 */
.btn-auth-action { width: 120px; height: 42px; display: flex; align-items: center; justify-content: center; padding: 0; }
.btn-dark { background-color: #111827; color: white; border: none; }
.btn-light { background-color: #f3f4f6; color: #374151; }
.btn-disabled-status { opacity: 0.4 !important; cursor: not-allowed !important; background-color: #6b7280 !important; color: #ffffff !important; border: none !important; }

/* ================= 3. 로그인 / 회원가입 디테일 ================= */
.auth-notice { text-align: center; margin-bottom: 20px; color: #666; font-size: 14px; }
.auth-links { margin-top: 25px; text-align: center; font-size: 14px; color: #888; }
.auth-links a { color: #3b82f6; text-decoration: underline; }
.auth-action-center { margin-top: 30px; display: flex; justify-content: center; }

/* 회원가입 폼 특화 */
.reg-input-with-btn { display: flex; align-items: center; gap: 8px; }
.reg-email-domain { font-size: 13px; color: #666; white-space: nowrap; }
.reg-success-msg { margin-top: 8px; font-size: 13px; color: #166534; display: none; }
.reg-error-msg { margin-top: 8px; font-size: 12px; display: none; }
.reg-hr { margin: 24px 0; border: 0; border-top: 1px solid #eee; }
.reg-terms-box { background: #f9fafb; padding: 15px; border-radius: 8px; border: 1px solid #e5e7eb; }
.reg-terms-box p { font-size: 13px; color: #4b5563; line-height: 1.6; margin-bottom: 10px; }
.reg-terms-label { font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }

/* ================= 4. 마이페이지 / 정보수정 디테일 ================= */
.mypage-profile-wrapper { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; }
.mypage-profile-circle { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; border: 4px solid #f3f4f6; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }
.mypage-profile-circle img { width: 100%; height: 100%; object-fit: cover; }
.mypage-profile-name { font-size: 24px; font-weight: 700; color: #111827; margin: 0; }

.mypage-section-title { font-size: 18px; color: #111827; border-bottom: 2px solid #e5e7eb; padding-bottom: 10px; margin-bottom: 20px; font-weight: 700; }
.mypage-info-grid { display: grid; grid-template-columns: 120px 1fr; gap: 15px; font-size: 16px; align-items: center; }
.mypage-info-label { color: #6b7280; font-weight: 600; }
.badge-grade { background: #f3f4f6; padding: 4px 10px; border-radius: 6px; font-size: 14px; }
.mypage-hr { margin: 40px 0; border: 0; border-top: 1px solid #f3f4f6; }

.mypage-actions-col { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.mypage-btn-edit { width: 180px; height: 45px; background: #374151; color: white; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; }
.mypage-btn-withdraw { background: none; border: none; color: #9ca3af; text-decoration: underline; font-size: 14px; cursor: pointer; }

/* 정보수정 특화 */
.edit-img-actions { display: flex; gap: 15px; }
.edit-img-btn { font-size: 13px; cursor: pointer; text-decoration: underline; }
.edit-img-btn.change { color: #3b82f6; }
.edit-img-btn.delete { color: #ef4444; }
.edit-pw-check-wrap { display: flex; gap: 10px; }
.edit-pw-check-btn { min-width: 80px; height: 45px; background: #374151; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }
.edit-actions-row { display: flex; gap: 15px; justify-content: center; margin-top: 50px; padding-top: 30px; border-top: 1px solid #f3f4f6; }

/* ================= 5. 모달 (회원탈퇴) ================= */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { background: white; padding: 40px; border-radius: 16px; width: 90%; max-width: 420px; text-align: center; }
.modal-title { font-size: 20px; margin-bottom: 15px; }
.modal-desc { color: #4b5563; line-height: 1.6; margin-bottom: 25px; }
.modal-warn { color: #ef4444; font-weight: 700; }
.modal-btn-wrap { display: flex; gap: 10px; }
.modal-btn-cancel { flex: 1; height: 45px; background: #f3f4f6; border: none; border-radius: 8px; cursor: pointer; }
.modal-btn-submit { flex: 1; height: 45px; background: #ef4444; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }