/**
 * g3-auth 로그인·비밀번호 화면 — g3-solution solution-ui / sol-shell 톤과 정렬
 * (auth WAR 단독 배포를 위해 solution-ui.css 에 의존하지 않음)
 */
:root {
	--auth-bar: #3a4046;
	--auth-bar-border: #1f2327;
	--auth-accent: #d9a022;
	--auth-bg: #ebecef;
	--auth-surface: #fff;
	--auth-text: #333;
	--auth-muted: #6c757d;
	--auth-btn: #7d94aa;
	--auth-btn-hover: #6a8196;
	--auth-input-border: #cacaca;
	--auth-danger: #a94442;
	--auth-danger-bg: #fdecea;
}

.auth-page {
	font-family: "Noto Sans KR", "Malgun Gothic", Helvetica, Arial, sans-serif;
	background: var(--auth-bg);
	color: var(--auth-text);
	margin: 0;
	min-height: 100vh;
	box-sizing: border-box;
	position: relative;
	isolation: isolate;
}

.auth-page--center {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

/* 로그인 배경: 단색 회색 대신 은은한 그라데이션/블랍으로 화면 밀도 확보 */
.auth-page--login {
	background:
		radial-gradient(900px 520px at 12% 18%, rgba(217, 160, 34, 0.22) 0%, rgba(217, 160, 34, 0) 60%),
		radial-gradient(760px 520px at 86% 22%, rgba(65, 111, 172, 0.22) 0%, rgba(65, 111, 172, 0) 58%),
		radial-gradient(720px 520px at 52% 92%, rgba(58, 64, 70, 0.18) 0%, rgba(58, 64, 70, 0) 62%),
		linear-gradient(180deg, #f6f7f9 0%, #edf0f4 50%, #e8ebf0 100%);
}

.auth-page--login::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.55;
	background-image:
		linear-gradient(0deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
	background-size: 44px 44px;
	mix-blend-mode: multiply;
}

.auth-wrap {
	width: 100%;
	max-width: 380px;
}

.auth-wrap--wide {
	max-width: 520px;
}

.auth-card {
	background: var(--auth-surface);
	border: 1px solid #b4bbc1;
	border-radius: 0;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}

.auth-brand {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 0.75rem 0.85rem;
	margin: 0 0 0.9rem;
	color: #2a3139;
}

.auth-brand__mark {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 12px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.08em;
	font-size: clamp(0.7rem, 2.8vw, 0.8125rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	white-space: nowrap;
	line-height: 1.1;
	color: #1f2327;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.55) 100%),
		radial-gradient(60% 60% at 30% 30%, rgba(217, 160, 34, 0.55) 0%, rgba(217, 160, 34, 0) 60%),
		radial-gradient(70% 70% at 70% 70%, rgba(65, 111, 172, 0.55) 0%, rgba(65, 111, 172, 0) 60%);
	border: 1px solid rgba(31, 35, 39, 0.12);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
}

.auth-brand__text {
	flex: 1 1 140px;
	min-width: 0;
}

.auth-brand__title {
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.auth-brand__sub {
	margin-top: 2px;
	font-size: 12px;
	color: #58636f;
}

@media (max-width: 360px) {
	.auth-brand {
		flex-direction: column;
		align-items: stretch;
	}
	.auth-brand__mark {
		align-self: flex-start;
	}
}

/* 로그인 화면은 "박스" 느낌을 줄이고, 바디를 글래스 패널로 */
.auth-page--login .auth-card {
	background: transparent;
	border: none;
	box-shadow: none;
	overflow: visible;
}

.auth-page--login .auth-card-header {
	background: transparent;
	border-bottom: none;
	padding: 0 0 0.55rem;
}

.auth-page--login .auth-card-header h1,
.auth-page--login .auth-card-header h2 {
	color: #1f2327;
	font-size: 1.15rem;
}

.auth-page--login .auth-card-body {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(31, 35, 39, 0.14);
	border-radius: 16px;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.auth-page--login .auth-footer {
	color: rgba(42, 49, 57, 0.72);
}

.auth-card-header {
	background: var(--auth-bar);
	color: var(--auth-accent);
	padding: 0.85rem 1.15rem;
	border-bottom: 1px solid var(--auth-bar-border);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.auth-card-header h1,
.auth-card-header h2 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--auth-accent);
}

.auth-card-body {
	padding: 1.25rem 1.35rem 1.4rem;
}

.auth-card-body > p.lead {
	margin-top: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--auth-muted);
}

.auth-lead {
	margin-bottom: 1.05rem;
}

.auth-label {
	display: block;
	font-weight: 600;
	color: #444;
	font-size: 12px;
	margin-bottom: 4px;
	text-align: left;
}

.auth-input,
.auth-card-body .form-control {
	width: 100%;
	box-sizing: border-box;
	min-height: 36px;
	padding: 8px 10px;
	border: 1px solid var(--auth-input-border);
	border-radius: 3px;
	font-size: 14px;
	color: #555;
	margin-bottom: 0;
}

.auth-input:focus,
.auth-card-body .form-control:focus {
	outline: none;
	border-color: #416fac;
	box-shadow: none;
}

.auth-field {
	margin-bottom: 1rem;
}

.auth-field:last-of-type {
	margin-bottom: 0.25rem;
}

.auth-btn-row {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-top: 1.1rem;
}

.auth-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	appearance: none;
	min-height: 36px;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	line-height: 36px;
	color: #fff;
	background: var(--auth-btn);
}

.auth-btn:hover {
	background: var(--auth-btn-hover);
	color: #fff;
}

.auth-btn-outline {
	background: #fff;
	color: #444;
	border: 1px solid #b4bbc1;
	line-height: 34px;
}

.auth-btn-outline:hover {
	background: #f0f1f4;
	color: #222;
}

.auth-alert {
	padding: 0.65rem 0.75rem;
	border-radius: 3px;
	font-size: 13px;
	margin-bottom: 1rem;
	border: 1px solid transparent;
}

.auth-alert--danger {
	color: var(--auth-danger);
	background: var(--auth-danger-bg);
	border-color: #d4a5a3;
}

.auth-jwt {
	margin-top: 1rem;
	word-break: break-all;
	font-size: 12px;
	color: var(--auth-text);
	background: #f4f5f7;
	padding: 0.65rem 0.75rem;
	border: 1px solid #cccbcb;
	border-radius: 3px;
	text-align: left;
}

.auth-info-link-row {
	margin: 1rem 0 0;
	text-align: center;
	font-size: 13px;
}

.auth-info-link {
	color: #416fac;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.auth-info-link:hover {
	color: #2d5599;
}

.auth-footer {
	margin-top: 1.25rem;
	font-size: 12px;
	color: var(--auth-muted);
	text-align: center;
}

.auth-card-body > form + .auth-alert {
	margin-top: 1rem;
}

.auth-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--auth-muted);
}

.auth-page--blank {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--auth-muted);
	font-size: 13px;
}

.auth-success-msg {
	text-align: center;
	max-width: 280px;
}

.auth-success-msg__title {
	margin: 0 0 0.5rem;
	color: var(--auth-text);
	font-size: 14px;
	font-weight: 600;
}

.auth-success-msg__sub {
	margin: 0;
	font-size: 12px;
	color: var(--auth-muted);
}
