@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

html {
	height: 100%;
}

body.login-page {
	font-family: 'Poppins', 'Segoe UI', sans-serif;
	font-size: 16px;
	margin: 0;
	padding: 0;
	min-height: 100%;
}

.background,
.backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
}

.background {
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.backdrop {
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(37, 99, 235, 0.45) 100%);
	opacity: 1;
	z-index: 0;
}

.login-left-column {
	position: fixed;
	top: 0;
	left: 7%;
	bottom: 0;
	width: min(580px, calc(56vw - 64px));
	z-index: 1;
	color: #ffffff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	pointer-events: none;
}

.login-pesantren-top {
	flex-shrink: 0;
	padding-top: 32px;
}

.login-app-center {
	flex: 1;
	display: flex;
	align-items: center;
	min-height: 0;
}

.login-align-row {
	display: flex;
	align-items: flex-start;
	width: 100%;
}

.login-align-spacer {
	flex-shrink: 0;
	font-size: 2.4rem;
	font-weight: 300;
	line-height: 1.25;
	letter-spacing: -0.02em;
	visibility: hidden;
	user-select: none;
}

.login-align-spacer-visible {
	visibility: visible;
	color: #22c55e;
	font-weight: 400;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.login-pesantren-brand {
	flex: 1;
	min-width: 0;
}

.login-pesantren-brand .nama-pesantren {
	font-size: clamp(1.25rem, 2.45vw, 2.35rem);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.02em;
}

.login-pesantren-brand .nama-line {
	display: block;
	white-space: nowrap;
}

.login-pesantren-brand .alamat-pesantren {
	margin-top: 12px;
	font-size: clamp(0.82rem, 1.05vw, 0.95rem);
	font-weight: 400;
	line-height: 1.55;
	opacity: 0.94;
	max-width: 100%;
}

.login-pesantren-brand .alamat-line {
	display: block;
	white-space: nowrap;
}

.text-overlay {
	position: static;
	transform: none;
	flex: 1;
	min-width: 0;
	max-width: none;
	font-size: 2.4rem;
	font-weight: 300;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #ffffff;
	text-shadow: none;
	z-index: auto;
}

.text-overlay .app-name-bold {
	font-weight: 700;
	white-space: nowrap;
	color: #f5c842;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.text-overlay .pro {
	font-weight: 700;
}

.text-overlay .slogan {
	margin-top: 6px;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.45;
	opacity: 0.92;
	max-width: 100%;
}

.login-page-panel {
	position: fixed;
	top: 0;
	right: 0;
	left: auto;
	transform: none;
	width: min(460px, 44vw);
	height: 100%;
	max-width: none;
	padding: 48px 40px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #ffffff;
	box-shadow: -12px 0 48px rgba(15, 23, 42, 0.12);
	border-radius: 0;
	z-index: 2;
	overflow-y: auto;
}

.login-card {
	width: 100%;
}

.login-card-header {
	text-align: center;
	margin-bottom: 28px;
}

.login-card-header .logo {
	margin-bottom: 6px;
}

.login-card-header .logo img {
	max-width: min(220px, 78%);
	height: auto;
	max-height: 120px;
	object-fit: contain;
	margin-bottom: 18px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.login-card-title {
	margin: 0 0 6px;
	font-size: 1.45rem;
	font-weight: 600;
	color: #0f172a;
}

.login-card-subtitle {
	margin: 0;
	font-size: 0.92rem;
	color: #64748b;
	font-weight: 400;
}

.login-card-body {
	padding: 0;
	background: transparent;
}

.login-card-body .alert {
	border: none;
	border-radius: 12px;
	font-size: 0.88rem;
	padding: 12px 14px;
}

.login-field-wrap {
	position: relative;
	margin-bottom: 16px;
}

.login-field-wrap > i {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 1rem;
	z-index: 2;
	pointer-events: none;
}

.login-field {
	display: block;
	width: 100%;
	padding: 14px 16px 14px 44px;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
	font-size: 0.95rem;
	color: #0f172a;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	box-sizing: border-box;
}

.login-field::placeholder {
	color: #94a3b8;
}

.login-field:focus {
	border-color: #2563eb;
	background: #ffffff;
	outline: none;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login-captcha-label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.88rem;
	color: #475569;
	font-weight: 500;
}

.login-captcha-box {
	display: inline-block;
	margin-bottom: 12px;
	padding: 10px 16px;
	border-radius: 10px;
	background: #eef2ff;
	color: #1e40af;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 22px;
	font-size: 0.88rem;
	color: #475569;
	font-weight: 400;
	cursor: pointer;
}

.login-remember input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	min-height: 18px;
	margin: 0;
	accent-color: #2563eb;
	border-radius: 4px;
}

.btn-login {
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #ffffff !important;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	height: auto;
	cursor: pointer;
}

.btn-login:hover,
.btn-login:focus {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.34);
	color: #ffffff !important;
}

.btn-login:active {
	transform: translateY(0);
}

.btn-back-website {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 12px;
	padding: 13px 20px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #475569 !important;
	background: #ffffff !important;
	text-decoration: none !important;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	box-sizing: border-box;
}

.btn-back-website:hover,
.btn-back-website:focus {
	color: #2563eb !important;
	border-color: #93c5fd;
	background: #f8fafc !important;
	text-decoration: none !important;
}

.login-card-footer {
	margin-top: 22px;
	padding: 0;
	background: transparent;
	text-align: center;
	font-size: 0.88rem;
	color: #64748b;
	border: none;
}

.login-card-footer p {
	margin: 0 0 8px;
}

.login-card-footer a {
	color: #2563eb;
	font-weight: 500;
	text-decoration: none;
}

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

.login-page-panel > .copyright {
	margin-top: auto;
	padding-top: 28px;
	text-align: center;
	font-size: 0.78rem;
	color: #94a3b8;
	background: transparent;
}

@media screen and (max-width: 900px) {
	.login-page-panel {
		position: absolute;
		top: 50%;
		left: 50%;
		right: auto;
		transform: translate(-50%, -50%);
		width: calc(100% - 32px);
		max-width: 420px;
		height: auto;
		min-height: 0;
		padding: 32px 28px 24px;
		border-radius: 20px;
		box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
	}

	.login-left-column {
		display: none;
	}

	.backdrop {
		background: linear-gradient(160deg, rgba(15, 23, 42, 0.55), rgba(37, 99, 235, 0.35));
	}

	.background {
		background-image: url('../images/bg_login_mobile.jpg') !important;
	}
}

@media screen and (max-width: 480px) {
	.login-page-panel {
		width: calc(100% - 24px);
		padding: 28px 22px 20px;
		border-radius: 16px;
	}

	.login-card-title {
		font-size: 1.25rem;
	}
}
