/**
 * Login UI based on Dendroculus/Login-Page-Templates Template 1 (MIT)
 * https://github.com/Dendroculus/Login-Page-Templates — adapted paths + split brand panel
 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Malgun Gothic", "Apple SD Gothic Neo", Verdana, Geneva, Tahoma, sans-serif;
}

:root {
	--brandcolor-1: rgba(255, 255, 255, 0.88);
	--brand-bg: rgba(255, 255, 255, 0.06);
	--brand-border: rgba(255, 255, 255, 0.15);
	--brand-box-shadow: 0 0 40px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.08);
	--brand-focus-border: rgba(255, 255, 255, 0.45);
	--brand-focus-shadow: 0 0 40px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.25);
	--def-transform-scale: scale(1.05);
	--def-transition: all 0.2s ease-in-out;
	--brand-panel: rgba(18, 21, 30, 0.55);
}

body {
	background-image: url(../login-t1/background.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 1rem;
}

.login-shell {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	max-width: 920px;
	background: var(--brand-bg);
	border: 2px solid var(--brand-border);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: var(--brand-box-shadow);
	border-radius: 1rem;
	overflow: hidden;
	text-transform: none;
}

.login-brand {
	flex: 1 1 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 2rem;
	background: var(--brand-panel);
	border-right: 1px solid var(--brand-border);
	text-align: center;
	min-height: 200px;
}

.login-brand .logo img {
	max-width: min(260px, 72vw);
	height: auto;
	display: block;
}

.login-brand .tagline {
	color: rgba(255, 255, 255, 0.92);
	margin-top: 1.25rem;
	font-size: 0.95rem;
	line-height: 1.65;
}

.login-brand .version-line {
	margin-top: 1.35rem;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.75);
}

.login-brand .version-line a {
	color: #f0b27a;
	text-decoration: none;
}

.login-brand .version-line a:hover {
	text-decoration: underline;
}

.loginpage {
	background: transparent;
	border: none;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2.75rem 2.5rem 2rem;
	border-radius: 0;
	width: 100%;
	flex: 1 1 340px;
	max-width: none;
	text-transform: none;
}

.loginpage h1 {
	color: #fff;
	font-size: 1.65rem;
	font-weight: 600;
}

.login,
.loginpage form {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.login {
	margin-top: 1rem;
}

.loginpage input[type="text"],
.loginpage input[type="password"],
.loginpage input[type="email"] {
	background: var(--brand-bg);
	border: 2px solid var(--brand-border);
	backdrop-filter: blur(10px);
	font-size: 1rem;
	-webkit-backdrop-filter: blur(15px);
	box-shadow: var(--brand-box-shadow);
	padding-left: 1.5rem;
	padding-right: 4rem;
	width: 100%;
	height: 3.2rem;
	border-radius: 1rem;
	margin: 0.25rem 0;
	background-image: none;
	color: #fff;
}

.loginpage input::placeholder {
	color: rgba(255, 255, 255, 0.55);
	text-transform: none;
	font-size: 1rem;
}

.loginpage input:focus {
	outline: none;
	border: 2px solid var(--brand-focus-border);
	box-shadow: var(--brand-focus-shadow);
}

.submit {
	display: flex;
	justify-content: center;
	margin-top: 1.75rem;
}

.login-help {
	margin-top: 1rem;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.78);
	text-align: center;
	line-height: 1.5;
}

.login-help a {
	color: #a8d8ff;
	text-decoration: none;
}

.login-help a:hover {
	text-decoration: underline;
}

.login-btn {
	padding: 0.75rem 2rem;
	border: none;
	border-radius: 1.5rem;
	background-color: #fff;
	color: #12151e;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
}

.login-btn:hover {
	transition: var(--def-transition);
	transform: var(--def-transform-scale);
	background-color: #12151e;
	color: #fff;
}

.login-footer {
	margin-top: 1.5rem;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.45);
	text-align: center;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.error {
	color: #ff8a80;
	font-size: 0.75rem;
	margin-top: 0.25rem;
	min-height: 0.9rem;
}

.input-wrapper {
	position: relative;
	width: 100%;
	overflow: visible;
}

.input-icon {
	position: absolute;
	right: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.5rem;
	height: 1.5rem;
	pointer-events: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	z-index: 2;
	display: block;
}

.user-icon {
	background-image: url(../login-t1/user.png);
}

.lock-icon {
	background-image: url(../login-t1/lock.png);
}

.loginpage input:-webkit-autofill,
.loginpage input:-webkit-autofill:hover,
.loginpage input:-webkit-autofill:focus,
.loginpage input:-webkit-autofill:active {
	-webkit-text-fill-color: #fff;
	-webkit-box-shadow: 0 0 0 1000px rgba(30, 35, 48, 0.85) inset;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.08);
	border: 2px solid var(--brand-border);
	background-image: none;
	transition: background-color 5000s ease-in-out 0s;
}

.loginpage input:-webkit-autofill:focus {
	border: 2px solid var(--brand-focus-border);
}

@media screen and (max-width: 720px) {
	.login-shell {
		flex-direction: column;
		max-width: 440px;
	}

	.login-brand {
		border-right: none;
		border-bottom: 1px solid var(--brand-border);
		padding: 2rem 1.5rem;
	}

	.loginpage {
		padding: 2rem 1.5rem 1.75rem;
	}

	.loginpage h1 {
		font-size: 1.45rem;
	}
}

@media screen and (max-width: 400px) {
	.loginpage input[type="text"],
	.loginpage input[type="password"] {
		height: 2.85rem;
		font-size: 0.9rem;
		padding-right: 3rem;
	}

	.login-btn {
		font-size: 0.95rem;
	}
}
