/*
   Decorative "school run" scene layered around the existing login box.
   Pure CSS/visual additions only - no markup here changes form field
   names/ids or JS-driven behavior; it only restyles/decorates.
*/

html, body {
	height: 100%;
}
body {
	background-image: none !important;
	background: linear-gradient(to bottom, #7dd3fc 0%, #bae6fd 45%, #e0f2fe 100%) !important;
}

/* ---------- fixed full-screen scene layer (behind the login box) ---------- */
.scene {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 35px; /* stop above #versionBar so the road/bus never sit under it */
	overflow: hidden;
	z-index: 1;
	pointer-events: none;
}

.scene-sun {
	position: absolute;
	top: 40px;
	right: 80px;
	width: 80px;
	height: 80px;
	background: #facc15;
	border-radius: 50%;
	box-shadow: 0 0 40px 10px rgba(253, 224, 71, 0.5);
}

.scene-cloud {
	position: absolute;
	background: #fff;
	border-radius: 50px;
	opacity: 0.8;
}
.scene-cloud:before, .scene-cloud:after {
	content: "";
	position: absolute;
	background: #fff;
	border-radius: 50%;
}
.scene-cloud1 {
	top: 64px;
	left: 80px;
	width: 96px;
	height: 48px;
	animation: cloudDriftRight 30s linear infinite;
}
.scene-cloud1:before { width: 46px; height: 46px; top: -20px; left: 8px; }
.scene-cloud1:after { width: 34px; height: 34px; top: -14px; left: 46px; }

.scene-cloud2 {
	top: 128px;
	right: 160px;
	width: 128px;
	height: 56px;
	opacity: 0.7;
	animation: cloudDriftLeft 25s linear infinite;
}
.scene-cloud2:before { width: 50px; height: 50px; top: -22px; left: 12px; }
.scene-cloud2:after { width: 38px; height: 38px; top: -16px; left: 56px; }

@keyframes cloudDriftRight {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(100px); }
}
@keyframes cloudDriftLeft {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(-80px); }
}

/* ---------- ground: grass + road ---------- */
.scene-grass {
	position: absolute;
	bottom: 112px;
	left: 0;
	width: 100%;
	height: 160px;
	background: linear-gradient(to bottom, #4ade80, #22c55e);
	overflow: hidden;
}
.scene-grass svg {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 80px;
}
.scene-road {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 112px;
	background: linear-gradient(to bottom, #6b7280, #4b5563);
	box-shadow: inset 0 4px 8px rgba(0,0,0,0.3);
}
.scene-road-edge {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: #9ca3af;
}
.scene-road-stripes {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 4px;
	transform: translateY(-50%);
	background-image: repeating-linear-gradient(to right, #fff 0, #fff 40px, transparent 40px, transparent 80px);
	opacity: 0.8;
}

/* ---------- trees (sizes/positions match customerdata/login page.html) ---------- */
.scene-tree {
	position: absolute;
	bottom: 168px;
	width: 96px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.scene-tree .trunk {
	width: 12px;
	height: 80px;
	border-radius: 3px;
	background: linear-gradient(to bottom, #92400e, #78350f);
}
.scene-tree .canopy {
	position: relative;
	width: 96px;
	height: 128px;
	margin-bottom: -48px;
	background: linear-gradient(to bottom, #22c55e, #16a34a);
	border-radius: 50%;
}
.scene-tree .canopy:before {
	content: "";
	position: absolute;
	top: 8px;
	left: 8px;
	width: 64px;
	height: 64px;
	background: rgba(74, 222, 128, 0.55);
	border-radius: 50%;
}
.scene-tree-1 { left: 80px; }
.scene-tree-2 { left: 224px; } /* 80px + 96px tree width + 48px gap, matching the reference's flex tree-group */
.scene-tree-3 {
	right: 320px;
	width: 80px;
}
.scene-tree-3 .trunk { height: 64px; }
.scene-tree-3 .canopy {
	width: 80px;
	height: 112px;
	margin-bottom: -40px;
}
.scene-tree-3 .canopy:before { width: 56px; height: 56px; }

/* ---------- school building ---------- */
.scene-school {
	position: absolute;
	bottom: 168px;
	right: 96px;
	height: 320px;
	width: auto;
	z-index: 10;
	filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* ---------- animated bus (sized/positioned to match customerdata/login page.html) ---------- */
.scene-bus-lane {
	position: absolute;
	bottom: 32px;
	left: 0;
	width: 100%;
	height: 224px;
}
.scene-bus-wrap {
	position: absolute;
	bottom: 0;
	height: 224px;
	animation: busDrive 10s linear infinite;
}
.scene-bus {
	display: block;
	height: 224px;
	width: auto;
	filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}
@keyframes busDrive {
	from { left: -400px; }
	to { left: calc(100% + 400px); }
}
.scene-bus-wifi {
	position: absolute;
	top: 48px;
	right: 64px;
	animation: wifiBlink 1.5s ease-in-out infinite;
}
@keyframes wifiBlink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

/* ---------- login box re-theme (matches customerdata/login page.html) ---------- */
#login {
	z-index: 20;
	border: none;
	background-color: transparent;
	width: 380px;
	margin-left: -190px;
}
#login .ribbon {
	display: none;
}
#login .shadow {
	display: none;
}
#login .inner {
	border: 4px solid #fb923c;
	border-radius: 24px;
	-webkit-border-radius: 24px;
	box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}
#login .userbox {
	border-radius: 20px;
}

/* -- brand header (replaces the old logo image) -- */
#login .logo {
	position: static !important;
	opacity: 1 !important;
	width: auto;
	text-align: center;
	padding: 24px 32px 0 32px;
	margin-top: 0 !important;
}
#login .brand-title {
	font-size: 2.1rem;
	font-weight: 800;
	color: #f97316;
	margin: 0 0 4px 0;
	line-height: 1.1;
}
#login .brand-subtitle {
	font-size: 0.85rem;
	color: #6b7280;
	margin: 0;
}

/* -- form area -- */
#login .formLogin {
	width: 100%;
	height: auto !important;
	left: 0 !important;
	opacity: 1 !important;
	box-sizing: border-box;
	padding: 12px 32px 24px 32px;
}
#login .tip {
	margin-bottom: 16px;
	text-align: left;
}
#login .field-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	margin-bottom: 4px;
}
#login #username_id, #login #password {
	background-image: none;
	border: 2px solid #fed7aa;
	border-radius: 12px;
	-webkit-border-radius: 12px;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	padding: 8px 16px;
	font-size: 0.95rem;
	line-height: normal;
	margin-bottom: 0;
	transition: border-color 0.2s ease;
}
#login #username_id:focus, #login #password:focus {
	border-color: #fb923c;
}
#login .uibutton-group {
	display: flex;
	width: 100%;
	gap: 10px;
}
#login .uibutton-group li {
	float: none;
	flex: 1;
}
#login .uibutton-group input[type="submit"] {
	width: 100%;
	background: linear-gradient(to right, #f97316, #fb923c);
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
	transition: box-shadow 0.2s ease, transform 0.1s ease;
}
#login .uibutton-group input[type="submit"]:hover {
	box-shadow: 0 6px 14px rgba(249, 115, 22, 0.55);
}
#login .uibutton-group input[type="submit"]:active {
	transform: translateY(1px);
}
#login div[style*="float:right"] {
	float: none !important;
	width: 100%;
}
#login .byline {
	text-align: center;
	color: #9ca3af;
	font-size: 0.75rem;
	margin-top: 16px;
}

#versionBar {
	z-index: 40;
}
