/* ============================================================
   member.css — 회원가입 / 로그인 / 아이디·비밀번호 찾기
   Figma 480:9300 · 486:1312 · 486:1139
   ============================================================ */

html,
body {
	background: #f8f9ff;
}

.mb {
	max-width: var(--design-w);
	margin: 0 auto;
	padding: calc(var(--header-h) + 50px) var(--gutter) 120px;
}
.mb-title {
	margin: 0 0 40px;
	font-size: clamp(30px, 3.355vw, 48.3px);
	font-weight: 800;
	line-height: 1.6;
	color: #0a090b;
	text-align: center;
}
.mb-sec {
	margin: 46px 0 16px;
	font-size: clamp(18px, 1.757vw, 25.3px);
	font-weight: 800;
	line-height: 1.4;
	color: #0a090b;
}
.mb-form-wrap { max-width: 1080px; margin: 0 auto; }

/* ---------- 카드 · 입력 ---------- */
.mb-card {
	padding: 34px 38px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: var(--c-white);
	box-shadow:0 0 17px 3px rgba(0, 0, 0, 0.1);
}
.mb-card--join {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 44px;
}
.mb-card--find { max-width: 480px; margin: 0 auto; }

.mb-field { grid-column: 1 / -1; }
.mb-field--half { grid-column: auto; }
.mb-card--find .mb-field + .mb-field { margin-top: 24px; }

.mb-label {
	display: block;
	margin-bottom: 11px;
	font-size: clamp(13px, 1.5vw, 18.4px);
	font-weight: 600;
	color: #0a090b;
}
.mb-label.is-req {color: #6136d9;}
.mb-label.is-req::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin: 0 0 8px 5px;
	border-radius: 50%;
	background: #6136d9;
	vertical-align: middle;
}

.mb input[type="text"],
.mb input[type="tel"],
.mb input[type="password"],
.mb select {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border: 1px solid #e1e1e1;
	border-radius: 4px;
	background: var(--c-white);
	font-family: inherit;
	font-size: clamp(12px, 1.3vw, 16.1px);
	color: #0a090b;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.mb input::placeholder { color: #999; }
.mb input:focus-visible,
.mb select:focus-visible {
	outline: none;
	border-color: #6136d9;
	box-shadow: 0 0 0 3px rgba(97, 54, 217, .14);
}

.mb-idrow { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
.mb-idcheck {
	height: 50px;
	border: 1px solid #0a090b;
	border-radius: 4px;
	background: var(--c-white);
	font-family: inherit;
	font-size: clamp(12px, 1.3vw, 16.1px);
	font-weight: 700;
	color: #0a090b;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.mb-idcheck:hover { background: #0a090b; color: var(--c-white); }
.mb-idmsg { margin: 9px 0 0; min-height: 18px; font-size: clamp(10px, 1.038vw, 15px); font-weight: 600; }
.mb-idmsg.is-ok { color: #1a9e63; }
.mb-idmsg.is-no { color: #e0455a; }

.mb-email { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 8px; align-items: center; }
.mb-email--3 { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 200px; }
.mb-email__at { text-align: center; font-size: clamp(11.5px, 1.278vw, 18.4px); font-weight: 600; }

.mb-url { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; align-items: center; }
.mb-url__pre { font-size: clamp(10.1px, 1.118vw, 16.1px); font-weight: 600; color: #0a090b; }

.mb-code { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; }
.mb-code__num {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	border-radius: 4px;
	background: #0a090b;
	color: var(--c-white);
	font-family: var(--font-num);
	font-size: clamp(11.5px, 1.278vw, 18.4px);
	font-weight: 800;
	letter-spacing: .18em;
	user-select: none;
}

/* ---------- 동의 ---------- */
.mb-card--agree {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 24px;
}
.mb-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: clamp(13px, 1.5vw, 16.1px);
	color: #0a090b;
	cursor: pointer;
}
.mb-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mb-check__box {
	position: relative;
	flex: none;
	width: 26px;
	height: 26px;
	border: 1px solid #d5d5dd;
	border-radius: 300px;
	background: var(--c-white);
	transition: background .2s ease, border-color .2s ease;
}
.mb-check__box::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 4px;
	width: 7px;
	height: 13px;
	border: solid var(--c-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(.4);
	opacity: 0;
	transition: transform .2s cubic-bezier(.2, 1.3, .4, 1), opacity .15s ease;
}
.mb-check input:checked + .mb-check__box { background: #6136d9; border-color: #6136d9; }
.mb-check input:checked + .mb-check__box::after { transform: rotate(45deg) scale(1); opacity: 1; }
.mb-check input:focus-visible + .mb-check__box { box-shadow: 0 0 0 3px rgba(97, 54, 217, .2); }
.mb-check em { font-style: normal; font-weight: 700; color: #6136d9; }

.mb-agree__more { display: inline-flex; align-items: center; gap: 6px; font-size: clamp(12px, 1.3vw, 16.1px); color: #0a090b; }
.mb-agree__more svg { width: 22px; height: 22px; }
.mb-agree__more:hover { color: #6136d9; text-decoration: underline; }

.mb-cta { display: flex; justify-content: center; margin-top: 50px; }

/* ---------- 버튼 ---------- */
.mb-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 65px;
	border: 0;
	border-radius: 8px;
	font-family: inherit;
	font-size: clamp(11.5px, 1.278vw, 18.4px);
	font-weight: 800;
	cursor: pointer;
	transition: background-position .6s cubic-bezier(.65, 0, .35, 1), transform .25s ease, box-shadow .3s ease;
}
.mb-btn--primary {
	background: linear-gradient(90deg, var(--c-blue) 0%, #fb3dab 100%);
	background-size: 200% 100%;
	background-position: 0% 0%;
	box-shadow: 0 10px 12.5px rgba(139, 121, 246, .3);
	color: var(--c-white);
}
.mb-btn--primary:hover { background-position: 100% 0%; transform: translateY(-2px); }
.mb-btn--ghost {
	border: 1px solid var(--c-blue);
	background: var(--c-white);
	color: var(--c-blue);
}
.mb-btn--ghost:hover { border-color: #6136d9; color: #6136d9; }

/* ---------- 로그인(레이어 팝업 형태) ---------- */
.mb-login {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 70vh;
}
.mb-dim { position: absolute; inset: 0; background: rgba(10, 9, 11, .04); pointer-events: none; }
.mb-modal {
	position: relative;
	width: min(480px, 100%);
	padding: 55px 40px 40px;
	border: 1px solid #4a43ee;
	border-radius: 8px;
	background: var(--c-white);
	/* 시안의 옅은 층 그림자 */
	box-shadow: 4px 4px 13px rgba(0, 0, 0, .03),
	            17px 17px 24px rgba(0, 0, 0, .03),
	            38px 38px 32px rgba(0, 0, 0, .02);
	text-align: center;
}
.mb-modal__close {
	position: absolute;
	right: 24px;
	top: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: #55565f;
	transition: background .2s ease, color .2s ease;
}
.mb-modal__close svg { width: 23px; height: 23px; }
.mb-modal__close:hover { background: #f2f3f8; color: #0a090b; }
.mb-modal__title { margin: 0; font-size: clamp(26px, 3.355vw, 48.3px); font-weight: 800; line-height: 1.4; color: #0a090b; }
.mb-modal__lead { margin: 8px 0 30px; font-size: clamp(10.1px, 1.118vw, 16.1px); font-weight: 500; color: #55565f; }
.mb-form { display: grid; gap: 10px; }
.mb-form .mb-btn { margin-top: 17px; }
.mb-modal__links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 22px 0 0;
	font-size: clamp(10.1px, 1.118vw, 16.1px);
}
.mb-modal__links a { color: #0a090b; }
.mb-modal__links a:hover { color: #6136d9; text-decoration: underline; }
.mb-modal__links span { width: 1px; height: 11px; background: #d5d5dd; }
.mb-modal__ask { margin: 30px 0 12px; font-size: clamp(10.1px, 1.118vw, 16.1px); color: #55565f; }

/* ---------- 아이디/비밀번호 찾기 탭 (Figma 486:1285) ---------- */
.mb-tabs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	width: min(480px, 100%);
	height: 65px;
	margin: 0 auto;
	padding: 10px 15px;
	border: 0;
	border-radius: 300px;
	background: var(--c-white);
	box-sizing: border-box;
}
.mb-tabs__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 45px;
	border-radius: 300px;
	font-size: 17px; /* 시안 ExtraBold 17 */
	font-weight: 800;
	line-height: 1.6;
	color: #000;
	text-align: center;
	transition: background .25s ease, color .25s ease;
}
.mb-tabs__btn.is-on {
	background: var(--c-blue); 
	color: var(--c-white);
	box-shadow: none;
}
.mb-find__ask {
	margin: 32px 0 24px; 
	font-size: clamp(16px, 1.917vw, 20px); 
	font-weight: 700;
	color: #0a090b;
	text-align: center;
}
.mb-card--find .mb-btn { margin-top: 30px; }
.mb-find__back { margin: 26px 0 0; text-align: center; font-size: clamp(10.1px, 1.118vw, 16.1px); }
.mb-find__back a { color: #55565f; }
.mb-find__back a:hover { color: #6136d9; text-decoration: underline; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
	.mb-card--join { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px; }
	.mb-field--half { grid-column: 1 / -1; }
	.mb-email--3 { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); }
	.mb-email--3 select { grid-column: 1 / -1; }
	.mb-modal { padding: 48px 24px 32px; }
}
@media (max-width: 600px) {
	.mb-code { grid-template-columns: 110px minmax(0, 1fr); }
	.mb-idrow { grid-template-columns: minmax(0, 1fr) 100px; }
}
