@charset "utf-8";
/* =====================================================================
   B-SIDE · 회원 페이지 리스킨 (라이믹스 회원 기본 스킨 .xm 위에 덮어쓰기)
   - 로그인 페이지 ("로그인이 필요합니다" 포함) → 로그인 팝업과 같은 카드
   - 회원가입 · 정보수정 폼 → 다크 입력칸 + 알약 버튼
   - PC · 모바일 공통
   ※ 회원 스킨 CSS보다 우선하도록 html body .xm 으로 시작
   ===================================================================== */

html body .xm {
	--m-card: #15152a;
	--m-field: rgba(255, 255, 255, .04);
	--m-line: rgba(255, 255, 255, .1);
	--m-line-2: rgba(255, 255, 255, .18);
	--m-tx: var(--bs-tx, #ececf7);
	--m-tx-2: var(--bs-tx-2, #a6a6c4);
	--m-tx-3: var(--bs-tx-3, #6d6d8f);
	--m-acc: var(--bs-acc, #818cf8);
	--m-acc-2: var(--bs-acc-2, #38bdf8);
	--m-grad: var(--bs-grad, linear-gradient(90deg, #818cf8, #38bdf8));
	font-family: var(--bs-f-ko, "Pretendard Variable", Pretendard, sans-serif);
	color: var(--m-tx);
}

/* ---------- 공통 입력칸 ---------- */
html body .xm input[type="text"],
html body .xm input[type="email"],
html body .xm input[type="password"],
html body .xm input[type="tel"],
html body .xm input[type="url"],
html body .xm input[type="number"],
html body .xm input[type="date"],
html body .xm select,
html body .xm textarea {
	box-sizing: border-box;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--m-line) !important;
	border-radius: 14px !important;
	background: var(--m-field) !important;
	box-shadow: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	color: #fff !important;
	caret-color: var(--m-acc-2);
	color-scheme: dark;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
html body .xm textarea { height: auto; min-height: 100px; padding: 12px 16px; }
html body .xm select { -webkit-appearance: auto; appearance: auto; }
html body .xm input::placeholder,
html body .xm textarea::placeholder { color: var(--m-tx-3); opacity: 1; }
html body .xm input:hover,
html body .xm select:hover { border-color: var(--m-line-2) !important; }
html body .xm input:focus,
html body .xm select:focus,
html body .xm textarea:focus {
	outline: 0;
	border-color: var(--m-acc) !important;
	background: rgba(129, 140, 248, .08) !important;
	box-shadow: 0 0 0 4px rgba(129, 140, 248, .18);
}
/* 크롬 자동완성: 다크 유지 + 글씨 보이게 */
html body .xm input:-webkit-autofill,
html body .xm input:-webkit-autofill:hover,
html body .xm input:-webkit-autofill:active {
	-webkit-text-fill-color: #fff !important;
	-webkit-box-shadow: 0 0 0 1000px #1d1d36 inset !important;
	box-shadow: 0 0 0 1000px #1d1d36 inset !important;
	transition: background-color 99999s ease 0s;
}
html body .xm input:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff !important;
	-webkit-box-shadow: 0 0 0 1000px #23234a inset, 0 0 0 4px rgba(129, 140, 248, .18) !important;
	box-shadow: 0 0 0 1000px #23234a inset, 0 0 0 4px rgba(129, 140, 248, .18) !important;
}

/* 체크박스 · 라디오 */
html body .xm input[type="checkbox"],
html body .xm input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0 6px 0 0;
	vertical-align: -3px;
	accent-color: var(--m-acc);
}
html body .xm label { color: var(--m-tx-2); }

/* ---------- 공통 버튼 ---------- */
html body .xm .btn,
html body .xm input[type="submit"],
html body .xm button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	height: 48px;
	padding: 0 26px !important;
	border: 1px solid var(--m-line-2) !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-shadow: none !important;
	text-shadow: none !important;
	font-family: inherit;
	font-size: 15px !important;
	font-weight: 600;
	line-height: 1 !important;
	color: var(--m-tx) !important;
	text-decoration: none !important;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color .15s, border-color .15s, filter .15s, box-shadow .2s;
}
html body .xm .btn:hover {
	border-color: var(--m-acc) !important;
	background: rgba(129, 140, 248, .14) !important;
	color: #fff !important;
}
/* 메인 버튼(등록 · 로그인 · 저장) = 그라데이션 */
html body .xm .btn-inverse,
html body .xm input[type="submit"],
html body .xm button[type="submit"] {
	border: 0 !important;
	background: var(--m-grad) !important;
	color: #111122 !important;
	font-weight: 700;
	box-shadow: 0 10px 28px rgba(129, 140, 248, .32) !important;
}
html body .xm .btn-inverse:hover,
html body .xm input[type="submit"]:hover,
html body .xm button[type="submit"]:hover {
	background: var(--m-grad) !important;
	color: #111122 !important;
	box-shadow: 0 14px 34px rgba(56, 189, 248, .3) !important;
}
html body .xm .btn-inverse:active,
html body .xm input[type="submit"]:active { filter: brightness(.92); }

/* 안내 메시지 (예: 로그인이 필요합니다) */
html body .xm .message {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px solid rgba(129, 140, 248, .3);
	border-radius: 14px;
	background: rgba(129, 140, 248, .1);
	font-size: 14px;
	line-height: 1.5;
	color: var(--m-tx);
}
html body .xm .message p { margin: 0; color: inherit; }
html body .xm .message.error {
	border-color: rgba(244, 63, 94, .35);
	background: rgba(244, 63, 94, .1);
	color: #fda4af;
}
html body .xm .message.error p:before { margin-right: 6px; content: '🔒'; }

/* =====================================================================
   로그인 카드
   ===================================================================== */
html body .xm .signin {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: 40px auto 60px;
	overflow: hidden;
	box-sizing: border-box;
	border: 1px solid var(--m-line) !important;
	border-radius: 24px !important;
	background:
		radial-gradient(420px 220px at 100% 0%, rgba(129, 140, 248, .22), transparent 70%),
		radial-gradient(360px 200px at 0% 100%, rgba(56, 189, 248, .10), transparent 70%),
		var(--m-card) !important;
	box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
	color: var(--m-tx);
}
/* 상단 미니 건반 (로그인 팝업과 동일) */
html body .xm .signin:before {
	display: block;
	height: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	background-image:
		linear-gradient(90deg,
			transparent 0 12px, #0b0b18 12px 20px, transparent 20px 28px, #0b0b18 28px 36px,
			transparent 36px 60px, #0b0b18 60px 68px, transparent 68px 76px, #0b0b18 76px 84px,
			transparent 84px 92px, #0b0b18 92px 100px, transparent 100px 112px),
		linear-gradient(90deg, rgba(255, 255, 255, .16) 0 15px, rgba(0, 0, 0, .35) 15px 16px);
	background-size: 112px 12px, 16px 100%;
	background-repeat: repeat-x;
	content: '';
}
html body .xm .signin > .login-header {
	padding: 28px 30px 4px !important;
	border: 0 !important;
}
html body .xm .signin > .login-header > h1 {
	margin: 0;
	font-family: var(--bs-f-en, "Space Grotesk", sans-serif);
	font-size: 32px !important;
	font-weight: 700 !important;
	letter-spacing: -0.04em;
	line-height: 1.1 !important;
	color: #fff !important;
}
html body .xm .signin > .login-header > h1 > i { display: none; }
html body .xm .signin > .login-header > h1:before {
	display: block;
	margin-bottom: 12px;
	font-family: var(--bs-f-mono, "JetBrains Mono", monospace);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	color: var(--m-acc-2);
	content: '● REC READY';
}
html body .xm .signin > .login-body {
	max-height: none !important;
	padding: 18px 30px 0 !important;
}
html body .xm .signin .control-group {
	padding: 0 !important;
	margin: 0 !important;
}
html body .xm .signin input[type="text"],
html body .xm .signin input[type="email"],
html body .xm .signin input[type="password"] {
	display: block;
	width: 100% !important;
	height: 54px;
	margin: 0 0 10px !important;
}
html body .xm .signin label[for="keepid_opt"],
html body .xm .signin .control-group > label {
	gap: 8px;
	display: inline-flex !important;
	align-items: center;
	margin: 6px 0 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--m-tx-2) !important;
}
html body .xm .signin #warning {
	margin: -8px 0 14px;
	padding: 10px 14px;
	border: 1px solid var(--m-line);
	border-radius: 12px;
	background: #24243f;
	font-size: 12px;
	line-height: 1.55;
	color: var(--m-tx-2);
}
html body .xm .signin #warning p { margin: 0; }
html body .xm .signin input[type="submit"],
html body .xm .signin .submit {
	position: static !important;   /* 회원 스킨은 버튼을 입력칸 옆에 absolute로 붙여 둠 → 아래로 */
	display: flex !important;
	width: 100% !important;
	height: 54px !important;
	margin: 0 !important;
	font-size: 16px !important;
}
html body .xm .signin > .login-footer {
	margin: 22px 30px 0 !important;
	padding: 18px 0 26px !important;
	border: 0 !important;
	border-top: 1px solid rgba(255, 255, 255, .08) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: center !important;
	font-size: 0;                    /* 사이의 | 문자 숨김 */
	color: transparent !important;
}
html body .xm .signin > .login-footer > a {
	display: inline-block;
	margin: 0 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--m-tx-2) !important;
	text-decoration: none !important;
}
html body .xm .signin > .login-footer > a:last-child { color: var(--m-acc-2) !important; }
html body .xm .signin > .login-footer > a:hover { color: #fff !important; }

/* =====================================================================
   회원가입 · 정보수정 폼
   ===================================================================== */
html body .xm > h1,
html body .xm h1[style] {
	margin: 10px 0 24px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--m-line) !important;
	font-family: var(--bs-f-ko);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #fff;
}
html body .xm .form-horizontal {
	max-width: 720px;
}
html body .xm .form-horizontal .control-group {
	display: grid;
	grid-template-columns: 160px 1fr;
	align-items: start;
	gap: 0 20px;
	margin: 0 0 18px !important;
}
html body .xm .form-horizontal .control-group:before,
html body .xm .form-horizontal .control-group:after { display: none !important; content: none !important; }   /* 옛 clearfix가 그리드 칸을 먹지 않게 */
html body .xm .form-horizontal .control-label {
	float: none !important;
	width: auto !important;
	padding-top: 14px !important;
	text-align: right;
	font-size: 14px;
	font-weight: 600;
	color: var(--m-tx) !important;
}
html body .xm .form-horizontal .control-label em { color: #fb7185 !important; font-style: normal; }
html body .xm .form-horizontal .controls {
	margin: 0 !important;
	min-width: 0;
}
html body .xm .form-horizontal .controls input[type="text"],
html body .xm .form-horizontal .controls input[type="email"],
html body .xm .form-horizontal .controls input[type="password"],
html body .xm .form-horizontal .controls input[type="tel"],
html body .xm .form-horizontal .controls input[type="url"] {
	width: 100%;
	max-width: 360px;
}
html body .xm .help-inline,
html body .xm .help-block {
	display: block;
	margin: 6px 2px 0;
	padding: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--m-tx-3);
}
/* 아이디 중복 등 실시간 안내(빨간 글씨) */
html body .xm .controls [style*="color:red"],
html body .xm .controls [style*="color: red"],
html body .xm .controls .error { color: #fb7185 !important; }
/* 라디오 줄 (메일링 · 쪽지) → 알약 선택지 */
html body .xm .form-horizontal .controls[style] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 6px !important;
}
html body .xm .form-horizontal .controls > label {
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	padding: 9px 16px 9px 12px;
	border: 1px solid var(--m-line);
	border-radius: 999px;
	background: var(--m-field);
	font-size: 14px;
	font-weight: 500;
	color: var(--m-tx-2) !important;
	cursor: pointer;
	transition: border-color .15s, background-color .15s, color .15s;
}
html body .xm .form-horizontal .controls > label:has(input:checked) {
	border-color: var(--m-acc);
	background: rgba(129, 140, 248, .14);
	color: #fff !important;
}
/* 약관 */
html body .xm .agreement {
	margin: 0 0 18px;
	padding: 16px 18px;
	border: 1px solid var(--m-line);
	border-radius: 16px;
	background: var(--m-field);
}
html body .xm .agreement .title { font-weight: 700; color: #fff; margin-bottom: 8px; }
html body .xm .agreement .text {
	max-height: 140px;
	overflow: auto;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(0, 0, 0, .25);
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--m-tx-2);
}
html body .xm .agreement .confirm { margin-top: 10px; }
/* 하단 버튼: 취소(고스트) ← → 등록(그라데이션) */
html body .xm .btnArea {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: row-reverse;
	gap: 10px;
	margin-top: 28px !important;
	padding-top: 20px !important;
	border-top: 1px solid var(--m-line) !important;
}
html body .xm .btnArea .pull-right,
html body .xm .btnArea .pull-left { float: none !important; }
html body .xm .btnArea input[type="submit"] { min-width: 160px; }

/* 회원 메뉴 탭 (정보 보기 · 작성 글 …) */
html body .xm .nav-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px !important;
	border: 0 !important;
}
html body .xm .nav-tabs > li { float: none !important; margin: 0 !important; }
html body .xm .nav-tabs > li > a {
	display: inline-block;
	padding: 8px 16px !important;
	border: 1px solid var(--m-line) !important;
	border-radius: 999px !important;
	background: transparent !important;
	font-size: 13px;
	font-weight: 600;
	color: var(--m-tx-2) !important;
	text-decoration: none !important;
}
html body .xm .nav-tabs > li > a:hover { border-color: var(--m-acc) !important; color: #fff !important; }
html body .xm .nav-tabs > .active > a,
html body .xm .nav-tabs > .active > a:hover {
	border-color: transparent !important;
	background: var(--m-grad) !important;
	color: #111122 !important;
}
/* 회원 정보 표 */
html body .xm .table th,
html body .xm .table td,
html body .xm .dl-horizontal dt,
html body .xm .dl-horizontal dd {
	border-color: var(--m-line) !important;
	background: transparent !important;
	color: var(--m-tx) !important;
}
html body .xm .table th,
html body .xm .dl-horizontal dt { color: var(--m-tx-2) !important; }

/* =====================================================================
   📱 모바일
   ===================================================================== */
@media all and (max-width: 640px) {
	html body .xm { padding: 0 16px; }
	html body .xm .signin {
		margin: 24px auto 40px;
		border-radius: 22px !important;
	}
	html body .xm .signin > .login-header { padding: 24px 22px 4px !important; }
	html body .xm .signin > .login-body { padding: 16px 22px 0 !important; }
	html body .xm .signin > .login-footer { margin: 20px 22px 0 !important; }
	html body .xm .signin > .login-header > h1 { font-size: 28px !important; }
	/* 16px 이상이면 아이폰에서 입력할 때 화면이 확대되지 않음 */
	html body .xm input[type="text"],
	html body .xm input[type="email"],
	html body .xm input[type="password"],
	html body .xm select { font-size: 16px; }

	html body .xm > h1,
	html body .xm h1[style] { font-size: 22px; margin-top: 20px; }
	html body .xm .form-horizontal .control-group {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	html body .xm .form-horizontal .control-label {
		padding-top: 0 !important;
		text-align: left;
	}
	html body .xm .form-horizontal .controls input[type="text"],
	html body .xm .form-horizontal .controls input[type="email"],
	html body .xm .form-horizontal .controls input[type="password"] { max-width: none; }
	html body .xm .btnArea { flex-direction: column; align-items: stretch; }
	html body .xm .btnArea .btn,
	html body .xm .btnArea input[type="submit"] { width: 100%; }
}
