:root {
	--blue: #2f9af3;
	--blue-strong: #237fda;
	--blue-dark: #1d4ed8;
	--ink: #18243a;
	--muted: #7b8798;
	--line: #e1e7ef;
	--field: #eaf3ff;
	--bg: #f5f7fb;
	--panel: #ffffff;
	--danger: #d93025;
}

* {
	box-sizing: border-box;   
}

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	font-family: Arial, "Noto Sans KR", "Malgun Gothic", sans-serif;
	color: var(--ink);
	background: var(--bg);
	letter-spacing: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea {
	font: inherit;
}

.auth-page {
	min-height: 100vh;
	background: #fff;
}

.auth-header {
	width: min(1120px, calc(100% - 48px));
	height: 68px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
}

.auth-logo {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: #64748b;
}

.auth-logo__mark {
	color: #222;
	font-size: 25px;
	font-weight: 900;
	letter-spacing: 0;
}

.auth-apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 122px;
	height: 38px;
	padding: 0 18px;
	background: var(--blue);
	color: #fff;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 6px 18px rgba(47, 154, 243, .24);
}

.auth-main {
	min-height: calc(100vh - 68px);
	display: grid;
	place-items: start center;
	padding-top: 130px;
}

.auth-card {
	width: 416px;
	padding: 48px 46px 42px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
}

.auth-card__head {
	margin-bottom: 28px;
}

.auth-card__head h1 {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 900;
	color: #111827;
}

.auth-card__head p:last-child {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.eyebrow {
	margin: 0 0 8px;
	color: var(--blue-strong);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.form-stack,
.form-grid {
	display: grid;
	gap: 18px;
}

.form-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-2 {
	grid-column: span 2;
}

label span {
	display: block;
	margin-bottom: 8px;
	color: #5b677a;
	font-size: 13px;
	font-weight: 800;
}

input,
textarea {
	width: 100%;
	min-height: 45px;
	padding: 0 15px;
	border: 1px solid #d7e0ea;
	border-radius: 3px;
	background: var(--field);
	color: #111827;
	outline: none;
	font-size: 14px;
	font-weight: 700;
}

input[type="file"] {
	display: flex;
	align-items: center;
	padding: 10px;
	background: #fff;
	font-weight: 700;
}

label small {
	display: block;
	margin-top: 7px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.4;
}

textarea {
	min-height: 96px;
	padding: 12px 15px;
	resize: vertical;
}

input:focus,
textarea:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(47, 154, 243, .14);
}

.check-row {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #566176;
	font-size: 13px;
	font-weight: 700;
}

.check-row input {
	width: 22px;
	height: 22px;
	min-height: 22px;
	padding: 0;
	background: #fff;
}

.check-row span {
	margin: 0;
	font-size: 13px;
}

.btn-primary,
.btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-weight: 900;
	cursor: pointer;
}

.btn-primary {
	background: var(--blue);
	color: #fff;
}

.btn-primary:hover {
	background: var(--blue-strong);
}

.btn-secondary {
	background: #fff;
	color: var(--ink);
	border-color: var(--line);
}

.btn-block {
	width: 100%;
}

.auth-links {
	display: grid;
	gap: 14px;
	padding-top: 4px;
	text-align: center;
	font-size: 13px;
	font-weight: 800;
	color: var(--blue-strong);
}

.notice {
	margin-bottom: 18px;
	padding: 12px 14px;
	background: #fff5f2;
	color: var(--danger);
	border: 1px solid #ffd8ce;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 700;
}

.join-shell {
	width: min(850px, calc(100% - 48px));
	margin: 52px auto 80px;
}

.form-panel,
.panel,
.summary-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 4px;
}

.form-panel {
	padding: 38px;
	box-shadow: 0 14px 44px rgba(15, 23, 42, .06);
}

.form-panel__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 28px;
}

.form-panel__head h1 {
	margin: 0;
	font-size: 26px;
}

.form-panel__head a {
	color: var(--blue-strong);
	font-weight: 800;
}

.form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 8px;
}

.app-page {
	background: #eef2f7;
}

.topbar {
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 28px;
	background: #3362f4;
	color: #fff;
}

.topbar__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 900;
}

.brand-mark {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	background: #fff;
	color: #3362f4;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 900;
}

.topbar__user {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 14px;
	font-weight: 800;
}

.app-shell {
	display: grid;
	grid-template-columns: 210px 1fr;
	min-height: calc(100vh - 64px);
}

.sidebar {
	background: #fff;
	border-right: 1px solid var(--line);
	padding: 18px 0;
}

.sidebar a {
	display: block;
	padding: 13px 22px;
	color: #31405a;
	font-size: 14px;
	font-weight: 800;
	border-left: 3px solid transparent;
}

.sidebar a.active,
.sidebar a:hover {
	color: #3362f4;
	background: #edf3ff;
	border-left-color: #3362f4;
}

.content {
	padding: 28px;
}

.page-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.page-head h1 {
	margin: 0;
	font-size: 26px;
}

.summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.summary-card {
	padding: 20px;
}

.summary-card span {
	display: block;
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
}

.summary-card strong {
	font-size: 24px;
}

.panel {
	padding: 24px;
}

.panel h2 {
	margin: 0 0 10px;
	font-size: 20px;
}

.panel p {
	margin: 6px 0;
	color: var(--muted);
	line-height: 1.6;
}

@media (max-width: 820px) {
	.auth-header {
		width: calc(100% - 32px);
	}

	.auth-main {
		padding: 44px 16px;
	}

	.auth-card {
		width: 100%;
		padding: 34px 24px;
	}

	.form-grid,
	.app-shell,
	.summary-grid {
		grid-template-columns: 1fr;
	}

	.span-2 {
		grid-column: span 1;
	}

	.sidebar {
		display: none;
	}
}
