@charset "utf-8";

/* ==========================================================================
   langclub 통합 로그인 UI
   - bbs/_lc_login_form.php 한 벌의 마크업을 모달/페이지 양쪽에서 공유
   - 모달  : bbs/_guest.php            (Book / Write review 등 비회원 클릭)
   - 페이지: skin/member/basic/login.skin.php (상단 메뉴 Log in)
   ========================================================================== */

.lc-auth {
	--lc-navy:#020063;
	--lc-ink:#111;
	--lc-muted:#666;
	--lc-line:#D9DBDE;
	--lc-line-soft:#ECEDF3;
	--lc-focus:#8F00FF;
	--lc-soft:#F6F5FF;
	--lc-soft-line:#E7E4FF;
	position:relative;width:100%;text-align:left;color:var(--lc-ink);
	font-family:Pretendard,'Apple SD Gothic Neo',sans-serif;font-weight:400;
}
.lc-auth, .lc-auth *, .lc-auth *:before, .lc-auth *:after {box-sizing:border-box}
.lc-auth button, .lc-auth input, .lc-auth label, .lc-auth a {font-family:inherit}
.lc-auth .sound_only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* --- 헤더 ---------------------------------------------------------------- */
.lc-auth__head {margin:0 0 24px;text-align:center}
.lc-auth__logo {display:inline-block;margin:0 0 18px;text-decoration:none}
.lc-auth__logo img {display:block;width:auto;height:34px}
.lc-auth__title {margin:0;font-size:26px;font-weight:700;line-height:1.25;letter-spacing:-0.2px;color:var(--lc-navy)}
.lc-auth__desc {margin:10px 0 0;padding:0;font-size:15px;line-height:1.5;color:var(--lc-muted)}

/* --- 소셜 로그인 --------------------------------------------------------- */
/* 소셜 스킨은 .line_or 를 #sns_login 앞에 출력하므로 order 로 순서를 뒤집는다 */
.lc-auth__social {display:flex;flex-direction:column;width:100%}
.lc-auth__social #sns_login {order:1;width:100%;margin:0;padding:0;border:0}
.lc-auth__social .line_or {order:2}

.lc-auth #sns_login .sns-wrap {display:grid;gap:10px;width:100%;height:auto;margin:0;padding:0;text-align:left;line-height:normal}
.lc-auth #sns_login .sns-icon {position:relative;display:flex;align-items:center;justify-content:center;float:none;width:100%;height:48px;margin:0;padding:0 46px;overflow:hidden;border-radius:8px;font-size:15px;font-weight:600;line-height:1;text-align:center;text-decoration:none;transition:box-shadow .2s,transform .2s,border-color .2s}
.lc-auth #sns_login .sns-icon:hover {transform:translateY(-1px);box-shadow:0 6px 16px rgba(2,0,99,.12)}
.lc-auth #sns_login .sns-google {color:#111;background:#fff;border:1px solid var(--lc-line);letter-spacing:0}
.lc-auth #sns_login .sns-kakao {color:#3c1e1e;background:#FEE500;border:1px solid #FEE500}
.lc-auth #sns_login .sns-facebook {color:#fff;background:#1877F2;border:1px solid #1877F2}
.lc-auth #sns_login .sns-icon .icons {position:absolute;top:50%;left:13px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;max-width:24px;max-height:24px;margin:0;padding:0;background:transparent;border-radius:0;transform:translateY(-50%)}
.lc-auth #sns_login .sns-icon .icons img {display:block;width:22px;height:22px;object-fit:contain}
/* 소셜 스킨 원문은 "Sign up with ..." 이라 로그인 화면 문구로 덮어쓴다 */
.lc-auth #sns_login .sns-icon .ico {display:block;width:auto;margin:0;padding:0;color:inherit;font-size:0;font-weight:600;line-height:1;letter-spacing:0;text-align:center;background:none;border:0}
.lc-auth #sns_login .sns-google .ico:after {content:"Continue with Google";font-size:15px}
.lc-auth #sns_login .sns-kakao .ico:after {content:"Continue with Kakao";font-size:15px}
.lc-auth #sns_login .sns-icon .txt {display:none}

/* --- 구분선 -------------------------------------------------------------- */
.lc-auth .line_or {position:relative;display:flex;align-items:center;width:100%;margin:20px 0 18px;padding:0;font-size:0;line-height:1;color:var(--lc-muted)}
.lc-auth .line_or:before, .lc-auth .line_or:after {display:block;flex:1;width:auto;height:1px;margin:0;background:var(--lc-line);vertical-align:baseline;content:""}
.lc-auth .line_or .txt_or {display:block;width:auto;margin:0 12px;padding:0;font-size:0;line-height:1;color:var(--lc-muted);background:none}
.lc-auth .line_or .txt_or:after {content:"or continue with email";font-size:13px;white-space:nowrap}

/* --- 입력 폼 ------------------------------------------------------------- */
.lc-auth__form {width:100%;margin:0}
.lc-auth__form fieldset {width:100%;margin:0;padding:0;border:0;background:transparent}
.lc-auth__field {display:block;margin:0 0 14px}
.lc-auth__label {display:block;margin:0 0 8px;font-size:15px;font-weight:600;line-height:1.2;color:#000;text-align:left}
.lc-auth__input-wrap {position:relative;display:block}
.lc-auth .frm_input {display:block;width:100%;height:48px;margin:0;padding:0 15px;color:#111;background:#fff;border:1px solid var(--lc-line);border-radius:8px;box-shadow:none;font-size:16px;line-height:46px;transition:border-color .2s,box-shadow .2s}
.lc-auth .frm_input::placeholder {color:#B9BABC;font-weight:300;opacity:1}
.lc-auth .frm_input:focus {background:#fff;border-color:var(--lc-focus);box-shadow:0 0 0 3px rgba(143,0,255,.12);outline:0}
.lc-auth__input-wrap--pw .frm_input {padding-right:64px}

.lc-auth__pw-toggle {position:absolute;top:50%;right:6px;min-width:48px;height:36px;padding:0 8px;color:#6b6d80;background:transparent;border:0;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transform:translateY(-50%)}
.lc-auth__pw-toggle:hover {color:var(--lc-navy);background:#F1F2F7}

/* 자동로그인 / 비밀번호 찾기 */
.lc-auth__meta {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px;margin:4px 0 18px}
.lc-auth__meta:after {display:none}
.lc-auth__remember {position:relative;min-width:0}
.lc-auth__remember input[type="checkbox"] {position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;opacity:0}
.lc-auth__remember label {display:inline-flex;align-items:center;gap:8px;min-height:24px;margin:0;padding:0;font-size:14px;line-height:1.25;color:var(--lc-muted);white-space:nowrap;cursor:pointer}
.lc-auth__checkbox {position:relative;display:block;flex:0 0 18px;width:18px;height:18px;margin:0;padding:0;background:#fff;border:1px solid #C9CBD7;border-radius:4px;transform:none}
.lc-auth__remember input[type="checkbox"]:checked + label {color:#000}
.lc-auth__remember input[type="checkbox"]:checked + label .lc-auth__checkbox {background:var(--lc-navy);border-color:var(--lc-navy)}
.lc-auth__remember input[type="checkbox"]:checked + label .lc-auth__checkbox:after {position:absolute;top:2px;left:6px;width:4px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);content:""}
.lc-auth__forgot {font-size:14px;font-weight:600;color:var(--lc-navy);text-decoration:none;white-space:nowrap}
.lc-auth__forgot:hover {text-decoration:underline}

/* 제출 버튼 : 사이트 공통 그라데이션 버튼(.css-15qf1fz)과 같은 배경.
   .btn_submit 의 background 단축 속성이 같은 특정도로 그라데이션을 지워버리므로 여기서 명시한다. */
.lc-auth .lc-auth__submit {display:inline-flex;align-items:center;justify-content:center;width:100%;height:52px;margin:0;padding:0 16px;color:#fff;background:linear-gradient(to right bottom, rgb(0,194,255) 3.94%, rgb(143,0,255) 94.16%);border:0;border-radius:8px;box-shadow:rgba(0,0,0,.38) 0 2px 2px 0;font-size:16px;font-weight:600;line-height:1.2;white-space:nowrap;cursor:pointer;transition:.3s all}
.lc-auth .lc-auth__submit:hover {transform:translateY(-1px);box-shadow:rgba(2,0,99,.28) 0 6px 14px 0}

/* 포커스 링 */
.lc-auth #sns_login .sns-icon:focus-visible,
.lc-auth .frm_input:focus-visible,
.lc-auth .lc-auth__submit:focus-visible,
.lc-auth .lc-auth__pw-toggle:focus-visible,
.lc-auth .lc-auth__signup-btn:focus-visible,
.lc-auth .lc-auth__forgot:focus-visible,
.lc-auth__remember input[type="checkbox"]:focus-visible + label .lc-auth__checkbox {outline:3px solid rgba(143,0,255,.25);outline-offset:2px}

/* --- 회원가입 유도 ------------------------------------------------------- */
.lc-auth__signup {margin:24px 0 0;padding:18px;text-align:center;background:var(--lc-soft);border:1px solid var(--lc-soft-line);border-radius:12px}
.lc-auth__signup p {margin:0 0 12px;padding:0;font-size:14px;line-height:1.45;color:var(--lc-muted)}
.lc-auth__signup strong {color:var(--lc-navy);font-weight:600}
.lc-auth__signup-btn {display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 20px;color:var(--lc-navy);background:#fff;border:1px solid #C9C8F8;border-radius:8px;font-size:14px;font-weight:600;text-decoration:none;transition:.2s all}
.lc-auth__signup-btn:hover {color:#fff;background:var(--lc-navy);border-color:var(--lc-navy)}

/* ==========================================================================
   컨테이너 1 : 페이지 (/bbs/login.php)
   ========================================================================== */
.lc-auth-page {margin:0 auto;max-width:480px;padding:150px 20px 120px}
.lc-auth-page:after {display:block;visibility:hidden;clear:both;content:""}
.lc-auth-page .lc-auth {padding:36px 38px 32px;background:#fff;border:1px solid var(--lc-line-soft);border-radius:16px;box-shadow:0 12px 40px rgba(2,0,99,.07)}

/* ==========================================================================
   컨테이너 2 : 모달 (/bbs/_guest.php, magnific-popup ajax)
   ========================================================================== */
/* 스크롤은 안쪽 .lc-auth 가 담당한다. 그래야 배경 클릭 닫기를 막아둔 상태에서도
   닫기(×) 버튼이 항상 같은 자리에 남는다. */
.lc-auth-modal {position:relative;display:flex;flex-direction:column;width:min(480px, calc(100vw - 32px));max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);margin:20px auto;padding:0;overflow:hidden;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(2,0,99,.24)}
.lc-auth-modal .lc-auth {flex:1 1 auto;min-height:0;padding:34px 34px 28px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.lc-auth-modal .mfp-close {top:6px;right:6px;width:44px;height:44px;color:#55576b !important;font-size:32px;line-height:44px;opacity:.85}
.lc-auth-modal .mfp-close:hover, .lc-auth-modal .mfp-close:focus-visible {color:var(--lc-navy) !important;opacity:1}
.lc-auth-modal .lc-auth__handle {display:none;width:40px;height:4px;margin:0 auto 14px;background:#DCDDE6;border-radius:2px}
.lc-auth-mfp.mfp-bg {background:#0b0d30;opacity:.55}

/* ==========================================================================
   모바일 최적화
   - 모달은 하단 시트(bottom sheet)로 전환
   - input 은 16px 유지 (iOS 자동 확대 방지)
   - 터치 타깃 최소 44px, 하단 safe-area 확보
   ========================================================================== */
@media all and (max-width:600px) {
	/* magnific 의 inline-block + vertical-align 정렬 대신 flex 로 바닥에 붙인다 */
	.lc-auth-mfp .mfp-container {display:flex;align-items:flex-end;padding:0}
	.lc-auth-mfp .mfp-container:before {display:none}
	.lc-auth-mfp .mfp-content {width:100%;max-width:100%;margin:0}

	.lc-auth-modal {width:100%;max-height:94vh;max-height:94dvh;margin:0;border-radius:20px 20px 0 0;box-shadow:0 -10px 40px rgba(2,0,99,.28)}
	.lc-auth-modal .lc-auth {padding:10px 20px calc(20px + env(safe-area-inset-bottom))}
	.lc-auth-modal .lc-auth__handle {display:block}
	.lc-auth-modal .mfp-close {top:0;right:0;width:44px;height:44px;font-size:28px;line-height:44px}

	/* 고정 헤더(.hd_fix top:20px + #gnb 56px = 76px) 아래로 여유를 둔다 */
	.lc-auth-page {padding:120px 16px 60px}
	.lc-auth-page .lc-auth {padding:26px 20px 24px;border:0;border-radius:14px;box-shadow:0 6px 24px rgba(2,0,99,.06)}

	.lc-auth__head {margin-bottom:20px}
	.lc-auth__logo {margin-bottom:12px}
	.lc-auth__logo img {height:30px}
	.lc-auth__title {font-size:21px}
	.lc-auth__desc {margin-top:8px;font-size:14px;line-height:1.45}

	.lc-auth #sns_login .sns-wrap {gap:8px}
	.lc-auth #sns_login .sns-icon {height:50px;padding:0 44px;font-size:15px}
	.lc-auth #sns_login .sns-icon .icons {left:12px;width:22px;height:22px}

	.lc-auth .line_or {margin:16px 0 14px}
	.lc-auth .line_or .txt_or:after {font-size:12px}

	.lc-auth__field {margin-bottom:12px}
	.lc-auth__label {margin-bottom:6px;font-size:14px}
	/* 16px 미만이면 iOS 에서 포커스 시 화면이 확대된다 */
	.lc-auth .frm_input {height:50px;line-height:48px;font-size:16px}
	.lc-auth__pw-toggle {min-width:52px;height:40px}

	.lc-auth__meta {margin:2px 0 14px}
	.lc-auth__remember label, .lc-auth__forgot {font-size:13px}
	.lc-auth .lc-auth__submit {height:52px;font-size:16px}

	.lc-auth__signup {margin-top:16px;padding:14px;border-radius:12px}
	.lc-auth__signup p {margin-bottom:10px;font-size:13px}
	.lc-auth__signup-btn {min-height:44px;padding:0 16px;font-size:13px}
}

@media all and (max-width:360px) {
	.lc-auth-modal .lc-auth, .lc-auth-page .lc-auth {padding-right:16px;padding-left:16px}
	.lc-auth__meta {align-items:flex-start}
	.lc-auth__remember label {white-space:normal}
}

/* 가로모드 등 세로 공간이 좁을 때 */
@media all and (max-width:600px) and (max-height:700px) {
	.lc-auth__head {margin-bottom:14px}
	.lc-auth__logo {margin-bottom:8px}
	.lc-auth__logo img {height:26px}
	.lc-auth__title {font-size:19px}
	.lc-auth__desc {margin-top:6px}
	.lc-auth #sns_login .sns-icon {height:46px}
	.lc-auth .frm_input {height:46px;line-height:44px}
	.lc-auth .line_or {margin:12px 0 10px}
	.lc-auth__field {margin-bottom:10px}
	.lc-auth .lc-auth__submit {height:48px}
	.lc-auth__signup {margin-top:12px;padding:12px}
}

@media (prefers-reduced-motion:reduce) {
	.lc-auth *, .lc-auth *:before, .lc-auth *:after {transition-duration:.01ms !important}
	.lc-auth #sns_login .sns-icon:hover, .lc-auth .lc-auth__submit:hover {transform:none}
}
