/* Kingdom Membership Core - Auth Modal CSS */
.kmc-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}
.kmc-modal-overlay.is-visible {
	opacity: 1;
	visibility: visible;
	display: flex !important;
}
.kmc-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
}
.kmc-modal-dialog {
	position: relative;
	background: #ffffff;
	width: 100%;
	max-width: 480px;
	max-height: 92vh;
	overflow-y: auto;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.28);
	z-index: 2;
	padding: 28px 24px;
	box-sizing: border-box;
	animation: kmcModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes kmcModalPop {
	from { transform: translateY(18px) scale(0.97); opacity: 0; }
	to { transform: translateY(0) scale(1); opacity: 1; }
}
.kmc-modal-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px 8px;
	transition: color 0.15s;
}
.kmc-modal-close:hover {
	color: #0f172a;
}
.kmc-modal-tabs {
	display: flex;
	gap: 6px;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 10px;
	margin-bottom: 20px;
}
.kmc-tab-btn {
	flex: 1;
	padding: 10px 14px;
	border: none;
	background: transparent;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s ease;
}
.kmc-tab-btn.active {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.kmc-tab-pane {
	display: none;
}
.kmc-tab-pane.active {
	display: block;
	animation: kmcFade 0.2s ease;
}
@keyframes kmcFade {
	from { opacity: 0; }
	to { opacity: 1; }
}
.kmc-required-notice {
	color: #e11d48;
	font-size: 13.5px;
	font-weight: 600;
	margin: 0 0 16px 2px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.kmc-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	background: #e11d48;
	border-radius: 50%;
}
.kmc-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}
.kmc-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.kmc-form-group label {
	font-weight: 600;
	font-size: 14px;
	color: #1e293b;
}
.kmc-req {
	color: #e11d48;
	font-weight: bold;
}
.kmc-hint {
	font-size: 12px;
	color: #64748b;
	font-weight: normal;
}
.kmc-input {
	width: 100%;
	height: 44px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	padding: 0 14px;
	font-size: 14.5px;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.kmc-input:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.kmc-recaptcha-wrap {
	margin: 6px 0;
}
.kmc-form-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13.5px;
}
.kmc-remember {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #475569;
	cursor: pointer;
}
.kmc-lost-pw {
	color: #64748b;
	text-decoration: none;
}
.kmc-lost-pw:hover {
	color: #3b82f6;
	text-decoration: underline;
}
.kmc-submit-btn {
	width: 100%;
	height: 46px;
	background: #3b82f6;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.kmc-submit-btn:hover {
	background: #2563eb;
}
.kmc-submit-btn:active {
	transform: scale(0.99);
}
.kmc-submit-btn:disabled {
	background: #94a3b8;
	cursor: not-allowed;
}
.kmc-switch-text {
	text-align: center;
	margin-top: 18px;
	font-size: 13.5px;
	color: #64748b;
}
.kmc-switch-text a {
	color: #3b82f6;
	font-weight: 600;
	text-decoration: none;
	margin-left: 4px;
}
.kmc-switch-text a:hover {
	text-decoration: underline;
}
.kmc-alert-box {
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
	margin-bottom: 16px;
	line-height: 1.5;
}
.kmc-alert-box.kmc-alert-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}
.kmc-alert-box.kmc-alert-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}
