/*
 * Login page CSS.
 * Rebuilds the login artwork in CSS so publishing only needs image/monitoring assets.
 */

.login-page {
	position: relative;
	display: flex;
	justify-content: center;
	min-height: 100vh;
	padding: clamp(24px, 4vh, 44px) 20px;
	overflow: hidden;
	background: linear-gradient(180deg, #f7f8f9 0%, #edf7f9 100%);
}

.login-page__shell {
	position: relative;
	z-index: 1;
	width: min(100%, 876px);
}

.login-page__brand {
	display: flex;
	align-items: center;
	width: min(100%, 850px);
	margin: 0 auto clamp(48px, 7vh, 72px);
	gap: 66px;
}

.login-page__mark {
	position: relative;
	display: grid;
	flex: 0 0 200px;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	width: 200px;
	height: 200px;
	gap: 6px;
	overflow: hidden;
}

.login-page__mark span {
	background: #4fc0eb;
}

.login-page__mark span:nth-child(n+5) {
	background: #95f4f2;
}

.login-page__mark::after {
	content: "M";
	position: absolute;
	right: 13px;
	bottom: -43px;
	font-size: 168px;
	font-weight: var(--font-weight-bold);
	line-height: 1;
	color: rgba(66, 186, 231, 0.78);
	transform: scaleX(0.72);
	transform-origin: right bottom;
}

.login-page__brand-copy {
	min-width: 0;
}

.login-page__brand-title {
	font-size: 43px;
	font-weight: var(--font-weight-bold);
	line-height: 1.24;
	color: #5a5d60;
	white-space: nowrap;
}

.login-page__brand-subtitle {
	margin-top: 10px;
	font-size: 42px;
	font-weight: var(--font-weight-regular);
	line-height: 1.2;
	color: #666a6d;
	white-space: nowrap;
}

.login-form {
	position: relative;
	width: min(100%, 846px);
	margin: 0 auto;
	padding: 48px 118px 32px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(174, 187, 194, 0.88);
	border-radius: 8px;
	box-shadow: 0 18px 42px rgba(44, 68, 78, 0.18),
				0 2px 7px rgba(44, 68, 78, 0.10),
				inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.login-form::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #4ac4e2 0%, #8ceeea 52%, #51c6dd 100%);
	border-radius: 8px 8px 0 0;
}

.login-form__field {
	margin-bottom: 36px;
}

.login-form__field:nth-of-type(2) {
	margin-bottom: 30px;
}

.login-form__label {
	display: block;
	margin-bottom: 12px;
	font-size: 30px;
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	color: #606468;
}

.login-form__input {
	display: block;
	width: 100%;
	height: 70px;
	padding: 0 18px;
	font-size: 15px;
	font-weight: var(--font-weight-medium);
	line-height: 1;
	color: #111;
	text-align: center;
	background: #eaf2ff;
	border: 1px solid #cfd8e3;
	border-radius: 2px;
	outline: none;
	box-shadow: inset 0 1px 2px rgba(30, 54, 68, 0.05),
				inset 0 0 0 1px rgba(255, 255, 255, 0.75);
	transition: border-color var(--motion-base) var(--motion-easing),
				box-shadow var(--motion-base) var(--motion-easing),
				background-color var(--motion-base) var(--motion-easing);
}

.login-form__input:hover {
	border-color: #9fb8c8;
}

.login-form__input:focus {
	background-color: #f2f8ff;
	border-color: #43bad6;
	box-shadow: inset 0 1px 2px rgba(30, 54, 68, 0.05),
				0 0 0 3px rgba(67, 186, 214, 0.22);
}

.login-form__submit {
	display: block;
	width: 171px;
	height: 72px;
	margin-left: auto;
	font-size: 30px;
	font-weight: var(--font-weight-bold);
	color: #fff;
	background: linear-gradient(180deg, #58cbe6 0%, #3ab1cc 100%);
	border: 1px solid #238fa9;
	border-radius: 2px;
	text-align: center;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
	box-shadow: 0 8px 14px rgba(34, 143, 169, 0.22),
				inset 0 1px 0 rgba(255, 255, 255, 0.32);
	transition: background var(--motion-base) var(--motion-easing),
				box-shadow var(--motion-base) var(--motion-easing),
				transform var(--motion-fast) var(--motion-easing);
}

.login-form__submit:hover:not(:disabled),
.login-form__submit:focus-visible {
	background: linear-gradient(180deg, #ff9a21 0%, #f08200 100%);
	border-color: #c96800;
	outline: none;
	box-shadow: 0 8px 14px rgba(219, 121, 10, 0.24),
				inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.login-form__submit:active:not(:disabled) {
	transform: translateY(1px);
	box-shadow: 0 3px 8px rgba(34, 143, 169, 0.18);
}

.login-form__submit:disabled {
	cursor: not-allowed;
	opacity: 0.72;
}

.login-form__message {
	min-height: 22px;
	margin-top: 16px;
	font-size: 14px;
	font-weight: var(--font-weight-medium);
	color: var(--color-state-fault);
	text-align: center;
}

@media (max-width: 767px) {
	.login-page {
		align-items: center;
		padding: 24px 14px;
	}

	.login-page__brand {
		flex-direction: column;
		gap: 20px;
		margin-bottom: 30px;
		text-align: center;
	}

	.login-page__mark {
		flex-basis: 118px;
		width: 118px;
		height: 118px;
		gap: 4px;
	}

	.login-page__mark::after {
		right: 6px;
		bottom: -25px;
		font-size: 98px;
	}

	.login-page__brand-title {
		font-size: 25px;
		white-space: normal;
	}

	.login-page__brand-subtitle {
		margin-top: 6px;
		font-size: 22px;
		white-space: normal;
	}

	.login-form {
		padding: 32px 22px 24px;
	}

	.login-form__field {
		margin-bottom: 24px;
	}

	.login-form__field:nth-of-type(2) {
		margin-bottom: 22px;
	}

	.login-form__label {
		margin-bottom: 8px;
		font-size: 22px;
	}

	.login-form__input {
		height: 54px;
		padding: 0 12px;
		font-size: 14px;
	}

	.login-form__submit {
		width: 100%;
		height: 56px;
		font-size: 22px;
	}

	.login-form__message {
		margin-top: 12px;
		font-size: 12px;
	}
}

/* FHD 미만 로그인 화면 보정. */
@media (max-width: 1919px) {
	html,
	body {
		max-width: 100%;
		overflow-x: hidden;
	}

	.login-page {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		padding-left: clamp(14px, 3vw, 40px);
		padding-right: clamp(14px, 3vw, 40px);
	}

	.login-page__brand,
	.login-form {
		width: min(100%, 720px);
		min-width: 0;
		max-width: 100%;
	}

	.login-page__brand-title,
	.login-page__brand-subtitle {
		white-space: normal;
	}
}
