/* =========================================================
   아이디 / 비밀번호 찾기 전용 CSS
   파일: css/forget.css
========================================================= */

.forget-wrap {
	max-width: 480px;
	margin: 60px auto 80px;
	padding: 0 16px;
	box-sizing: border-box;
	font-size: 14px;
}

.forget-card {
	background: #ffffff;
	border-radius: 20px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	padding: 22px 20px 20px;
	box-sizing: border-box;
}

/* 헤더 */
.forget-header {
	margin-bottom: 16px;
}

.forget-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: #111827;
}

.forget-desc {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
	line-height: 1.6;
}

/* 탭 */
.forget-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin: 12px 0 10px;
}

.forget-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 6px;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background-color: #f9fafb;
	font-size: 14px;
	color: #4b5563;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.forget-tab.active {
	/*background-color: #0ea5e9;*/
	/*border-color: #0ea5e9;*/
	background-color: #aaa;
	color: #ffffff;
}

/* 패널 */
.forget-panel {
	display: none;
	margin-top: 4px;
}

.forget-panel.active {
	display: block;
}

/* 폼 공통 */
.forget-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.field-label {
	font-size: 14px;
	color: #374151;
}

.tf {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid #d1d5db;
	font-size: 14px;
	color: #111827;
	outline: none;
	background-color: #ffffff;
}

.tf:focus {
	border-color: #0ea5e9;
	box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2);
}

.field-help {
	margin: 2px 0 0;
	font-size: 14px;
	color: #6b7280;
	line-height: 1.4;
}

/* 인라인 필드 (인증번호 + 버튼) */
.form-field-inline {
	flex-direction: row;
	align-items: flex-end;
	gap: 8px;
}

.field-inline-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.field-inline-side {
	flex: 0 0 auto;
}

.btn-send-code {
	white-space: nowrap;
	min-width: 120px;
}

/* 버튼 공통 */
.btn-full {
	width: 100%;
}

.form-actions {
	margin-top: 4px;
}

/* 모달 */
.forget-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.forget-modal.open {
	display: flex;
}

.forget-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.35);
}

.forget-modal-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 360px;
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
	box-sizing: border-box;
	padding: 16px 18px 14px;
}

.forget-modal-header {
	margin-bottom: 8px;
}

.forget-modal-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}

.forget-modal-body {
	font-size: 14px;
	color: #374151;
	line-height: 1.6;
	margin-bottom: 12px;
}

.forget-modal-footer {
	display: flex;
	justify-content: flex-end;
}

.forget-modal-footer .btn-primary {
	min-width: 80px;
}

/* ============================
   버튼 공통 스타일
   (아이디찾기 / 비밀번호 재설정 / 인증번호 전송)
============================ */

/* 기본 버튼 리셋 */
.forget-card button {
	font-family: inherit;
	font-size: 14px;
	border: none;
	background: none;
	cursor: pointer;
}

/* 프라이머리 버튼 (아이디 찾기, 비밀번호 재설정, 모달 확인 등) */
.forget-card .btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 999px;
	/*border: 1px solid #f97316;        !* 브랜드 오렌지 *!*/
	/*background-color: #f97316;*/
	border: 1px solid var(--default-button-bg);
	background-color: var(--default-button-bg);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	/*box-shadow: 0 3px 8px rgba(248, 148, 72, 0.35);*/
	/*transition: background-color 0.15s ease, border-color 0.15s ease,*/
	/*box-shadow 0.15s ease, transform 0.05s ease;*/
}

.forget-card .btn-primary:hover {
	background-color: var(--default-button-bg);
	border-color: var(--default-button-bg);
	/*box-shadow: 0 4px 10px rgba(234, 88, 12, 0.4);*/
	/*transform: translateY(-1px);*/
}

.forget-card .btn-primary:disabled {
	background-color: #e5e7eb;
	border-color: #e5e7eb;
	color: #9ca3af;
	box-shadow: none;
	cursor: default;
	transform: none;
}

/* 아웃라인 버튼 (인증번호 전송) */
.forget-card .btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	background-color: #ffffff;
	color: #111827;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
	transition: background-color 0.15s ease, border-color 0.15s ease,
	box-shadow 0.15s ease, transform 0.05s ease;
}

.forget-card .btn-outline:hover {
	background-color: #f3f4f6;
	border-color: #cbd5e1;
	box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
	transform: translateY(-1px);
}

.forget-card .btn-outline:disabled {
	background-color: #f9fafb;
	border-color: #e5e7eb;
	color: #9ca3af;
	box-shadow: none;
	cursor: default;
	transform: none;
}

/* 전체폭 버튼 */
.forget-card .btn-full {
	width: 100%;
}

/* 인증번호 전송 버튼 추가 정리 */
.forget-card .btn-send-code {
	min-width: 120px;
	justify-content: center;
}

/* ============================
   모달 버튼 스타일
============================ */

/* 모달 기본 버튼 리셋 */
.modal button {
	font-family: inherit;
	font-size: 14px;
	border: none;
	background: none;
	cursor: pointer;
}

/* 모달 - 프라이머리 버튼 */
.modal .btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid #f97316;
	background-color: #f97316;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 3px 8px rgba(248, 148, 72, 0.35);
	transition: background-color 0.15s ease, border-color 0.15s ease,
	box-shadow 0.15s ease, transform 0.05s ease;
}

.modal .btn-primary:hover {
	background-color: #ea580c;
	border-color: #ea580c;
	box-shadow: 0 4px 10px rgba(234, 88, 12, 0.40);
	transform: translateY(-1px);
}

/* 모달 - 아웃라인 버튼 */
.modal .btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	background-color: #ffffff;
	color: #111827;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
	transition: background-color 0.15s ease, border-color 0.15s ease,
	box-shadow 0.15s ease, transform 0.05s ease;
}

.modal .btn-outline:hover {
	background-color: #f3f4f6;
	border-color: #cbd5e1;
	box-shadow: 0 3px 8px rgba(15, 23, 42, 0.10);
	transform: translateY(-1px);
}

/* 전체폭 옵션 (필요한 경우) */
.modal .btn-full {
	width: 100%;
}

/* 모달 버튼 간격 */
.modal .modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}



/* 반응형 */
@media (max-width: 768px) {
	.forget-wrap {
		margin: 40px auto 60px;
	}

	.forget-card {
		padding: 18px 16px 18px;
	}

	.form-field-inline {
		flex-direction: column;
		align-items: stretch;
	}

	.btn-send-code {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.forget-wrap {
		margin: 32px auto 50px;
		padding: 0 12px;
	}

	.forget-title {
		font-size: 18px;
	}
}
