/* -------- 기본 셋업 -------- */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
}

body {
	font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	background: #f4f7fb;
	color: #222;
}

/* -------- 공통 레이아웃 -------- */

.auth-wrapper {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
}

.auth-card {
	width: 100%;
	max-width: 980px;
	display: flex;
	background: #ffffff;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

/* 왼쪽 브랜드 영역 */
.auth-hero {
	flex: 0 0 40%;
	background: linear-gradient(150deg, #34c3a0, #6ec0bd);
	color: #ffffff;
	padding: 40px 32px;
	position: relative;
	overflow: hidden;
}

.auth-hero::after {
	content: "";
	position: absolute;
	right: -30%;
	bottom: -40%;
	width: 260%;
	height: 260%;
	background: radial-gradient(circle at center, rgba(255,255,255,0.25), transparent 60%);
	opacity: 0.6;
}

.auth-hero-inner {
	position: relative;
	z-index: 1;
}

.auth-logo {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin-bottom: 32px;
}

.auth-tagline {
	font-size: 14px;
	opacity: 0.95;
	margin-bottom: 24px;
}

.auth-desc {
	font-size: 13px;
	line-height: 1.7;
	opacity: 0.9;
}

/* 오른쪽 폼 영역 */
.auth-form-area {
	flex: 1;
	padding: 36px 46px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.auth-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 6px;
	color: #1f2933;
}

.auth-subtitle {
	font-size: 13px;
	color: #7b8794;
	margin-bottom: 26px;
}

/* 폼 공통 */
.auth-form {
	width: 100%;
}

.form-row {
	margin-bottom: 14px;
}

.form-label {
	display: block;
	font-size: 13px;
	color: #4b5563;
	margin-bottom: 6px;
}

.form-input-wrap {
	position: relative;
}

.form-input-icon {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	color: #9ca3af;
}

.form-input {
	width: 100%;
	padding: 10px 12px 10px 34px;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	font-size: 14px;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-input:focus {
	outline: none;
	border-color: #34c3a0;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(52, 195, 160, 0.16);
}

/* 체크박스 / 링크 */
.form-row-inline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
	gap: 8px;
}

.checkbox-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #6b7280;
}

.checkbox-wrap input[type="checkbox"] {
	width: 14px;
	height: 14px;
}

.form-link {
	font-size: 12px;
	color: #34c3a0;
	text-decoration: none;
	white-space: nowrap;
}

.form-link:hover {
	text-decoration: underline;
}

/* 비밀번호 보기 아이콘 */
.password-wrap {
	position: relative;
}

.password-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	color: #9ca3af;
	cursor: pointer;
	padding: 4px;
}

.password-toggle:hover {
	color: #6b7280;
}



/* 버튼 */
.auth-btn-main {
	width: 100%;
	border: none;
	border-radius: 999px;
	padding: 11px 16px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(120deg, #34c3a0, #20b38f);
	cursor: pointer;
	margin-top: 14px;
	box-shadow: 0 10px 20px rgba(52, 195, 160, 0.25);
	transition: transform 0.1s, box-shadow 0.1s, filter 0.1s;
}

.auth-btn-main:hover {
	filter: brightness(1.03);
	box-shadow: 0 14px 26px rgba(52, 195, 160, 0.30);
}

.auth-btn-main:active {
	transform: translateY(1px);
	box-shadow: 0 8px 18px rgba(52, 195, 160, 0.22);
}

/* -------------------------
   회색 보조 버튼 스타일
-------------------------- */
.btn-gray {
	background: #e5e7eb;
	color: #374151;
	border: none;
	border-radius: 999px;
	padding: 11px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	margin-top: 10px;
	transition: background 0.15s, box-shadow 0.1s;
}

.btn-gray:hover {
	background: #d1d5db;
}

.btn-gray:active {
	background: #c5c9cf;
}



/* 하단 안내 */
.auth-footer-text {
	margin-top: 20px;
	font-size: 13px;
	color: #6b7280;
}

.auth-footer-text a {
	color: #34c3a0;
	text-decoration: none;
}

.auth-footer-text a:hover {
	text-decoration: underline;
}


/* 필드 메시지 (유효성, 안내 등) */
.field-msg {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.4;
	color: #6b7280;
}

.field-msg-ok {
	color: #16a34a; /* 초록 계열 */
}

.field-msg-error {
	color: #dc2626; /* 빨강 계열 */
}

/* 우측 상태 아이콘 (아이디 중복 여부 등) */
.field-status-icon {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	color: #9ca3af;
	display: flex;
	align-items: center;
	justify-content: center;
}

.field-status-icon.ok {
	color: #16a34a;
}

.field-status-icon.error {
	color: #dc2626;
}

.field-status-icon.checking {
	color: #6b7280;
}

/* 입력 중(타이핑 빠르게 할 때) 인풋 강조 */
.form-input.input-busy {
	animation: inputBusyPulse 0.4s ease-out infinite alternate;
}

@keyframes inputBusyPulse {
	from {
		box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.0);
	}
	to {
		box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.45);
	}
}


/* =========================================================
   1) 데스크탑 (기본) : min-width 1024px
   - 위 스타일이 기본이므로 별도 미디어쿼리는 없음
   ========================================================= */

/* =========================================================
   2) 태블릿: 600px ~ 1023px
   - 카드 폭 살짝 줄이고, 상하 스택 구조로 변경
   ========================================================= */
@media (max-width: 1023px) and (min-width: 600px) {

	.auth-wrapper {
		padding: 32px 20px;
	}

	.auth-card {
		max-width: 720px;
		flex-direction: column;
	}

	.auth-hero {
		padding: 30px 28px;
		text-align: left;
	}

	.auth-logo {
		font-size: 24px;
		margin-bottom: 24px;
	}

	.auth-tagline {
		font-size: 13px;
		margin-bottom: 18px;
	}

	.auth-form-area {
		padding: 26px 28px 30px;
	}

	.auth-title {
		font-size: 22px;
	}

	.auth-subtitle {
		font-size: 12px;
		margin-bottom: 20px;
	}
}

/* =========================================================
   3) 모바일: 최대 599px
   - 풀폭, 그림자/라운드 살짝 줄이고 폰트·여백 축소
   ========================================================= */
@media (max-width: 599px) {

	.auth-wrapper {
		padding: 16px 10px;
	}

	.auth-card {
		max-width: 100%;
		flex-direction: column;
		border-radius: 16px;
		box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
	}

	.auth-hero {
		padding: 22px 18px;
		text-align: left;
	}

	.auth-logo {
		font-size: 20px;
		margin-bottom: 14px;
		letter-spacing: 0.1em;
	}

	.auth-tagline {
		font-size: 12px;
		margin-bottom: 12px;
	}

	.auth-desc {
		font-size: 12px;
	}

	.auth-form-area {
		padding: 20px 18px 22px;
	}

	.auth-title {
		font-size: 20px;
		margin-bottom: 4px;
	}

	.auth-subtitle {
		font-size: 12px;
		margin-bottom: 18px;
	}

	.form-label {
		font-size: 12px;
	}

	.form-input {
		font-size: 13px;
		padding: 9px 10px 9px 32px;
	}

	.form-row-inline {
		flex-direction: column;
		align-items: flex-start;
	}

	.form-link {
		font-size: 12px;
	}

	.auth-btn-main {
		padding: 10px 14px;
		font-size: 14px;
		margin-top: 12px;
	}

	.auth-footer-text {
		font-size: 12px;
		margin-top: 16px;
	}
}
