/**
 * Login page layout and theming (login.php).
 * Load after main.css and dark-mode.css.
 */
:root {
	--login-teal: #00c9a7;
	--login-teal2: #00a880;
	--login-text: #0d1f1d;
	--login-text-sub: #4a6662;
	--login-text-muted: #9ab8b4;
}

.dark-switch-hidden {
	display: none !important;
}

html,
body {
	min-height: 100%;
	height: auto;
	margin: 0;
	background: linear-gradient(135deg, #00c9a7 0%, #006d6a 40%, #003d3a 100%);
}

.limiter {
	min-height: 100vh;
	min-height: 100dvh;
}

.container-login100 {
	min-height: 100vh;
	min-height: 100dvh;
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #00c9a7 0%, #006d6a 40%, #003d3a 100%);
}

/* Decorative bubbles */
.bg-bubble {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	animation: login-drift 10s ease-in-out infinite;
}

.bg-bubble.b1 {
	width: 320px;
	height: 320px;
	top: -90px;
	left: -90px;
	animation-delay: 0s;
}

.bg-bubble.b2 {
	width: 220px;
	height: 220px;
	right: -70px;
	top: 60%;
	animation-delay: -3s;
}

.bg-bubble.b3 {
	width: 140px;
	height: 140px;
	bottom: 40px;
	left: 20%;
	animation-delay: -6s;
}

.bg-bubble.b4 {
	width: 84px;
	height: 84px;
	top: 30%;
	left: 15%;
	animation-delay: -2s;
}

.bg-bubble.b5 {
	width: 120px;
	height: 120px;
	top: 10%;
	right: 20%;
	animation-delay: -4s;
}

@keyframes login-drift {

	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}

	33% {
		transform: translate(15px, -20px) scale(1.03);
	}

	66% {
		transform: translate(-10px, 15px) scale(0.97);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bg-bubble {
		animation: none;
	}
}

/* Glass card */
.wrap-login100.login-wrap-style {
	opacity: 1;
	max-width: 860px;
	width: 100%;
	padding: 0;
	display: flex;
	overflow: hidden;
	border-radius: 24px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.login100-pic {
	width: 45%;
	flex-shrink: 0;
	margin: 0;
	padding: 56px 40px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border-right: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.glass-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 32px;
}

.glass-brand-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.glass-brand-name {
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.glass-title {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.04em;
	color: #fff;
	margin-bottom: 14px;
}

.glass-subtitle {
	font-size: 1.1rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72);
	margin-bottom: 36px;
}

.glass-stats {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.glass-stat-card {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	backdrop-filter: blur(4px);
}

.glass-stat-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.glass-stat-value {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

.glass-stat-label {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.65);
}

.right-panel-logo {
	display: block;
	width: 20%;
	max-width: 220px;
	height: auto;
	margin: 0 auto 14px;
}

.register-logo {
	display: block;
	width: 10%;
	max-width: 150px;
	height: auto;
	margin: 0 auto 14px;
}


/* Register.php: logo + title on one row (overrides main.css width:100% on .login100-form-title) */
.register-form-header.row {
	margin-bottom: 14px;
	flex-wrap: nowrap;
}

.register-form-header .register-logo {
	display: block;
	width: auto;
	height: 48px;
	max-width: 52px;
	margin: 0;
	object-fit: contain;
}

.register-form-header .login100-form-title {
	width: auto !important;
	max-width: none;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
	text-align: left;
	line-height: 1.1;
	display: block;
	white-space: nowrap;
}

@media (max-width: 400px) {
	.register-form-header.row {
		flex-wrap: wrap;
	}

	.register-form-header .login100-form-title {
		white-space: normal;
		text-align: center;
	}
}

.login100-form {
	flex: 1;
	padding: 56px 44px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(40px);
	-webkit-backdrop-filter: blur(40px);
}

.login100-form-title {
	color: var(--login-text);
	letter-spacing: -0.02em;
	font-size: 25px;
	line-height: 1.05;
	margin-bottom: 6px;
	padding-bottom: 0;
	text-align: center;
}

.login100-form-subtitle {
	font-size: 0.85rem;
	color: var(--login-text-sub);
	margin-bottom: 15px;
	text-align: center;
}

.wrap-input100 {
	margin-bottom: 16px;
}

.input100-inner {
	position: relative;
	width: 100%;
	z-index: 1;
}

.input100-field-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--login-text-muted);
	margin-bottom: 8px;
	text-align: left;
}

.input100 {
	border: 1.5px solid #dde8e6;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--login-text);
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input100:focus {
	border-color: #009688;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.22);
}

.symbol-input100 {
	color: var(--login-text-muted);
}

.input100:focus+.focus-input100+.symbol-input100 {
	color: #009688;
	padding-left: 28px;
}

.input100-inner .focus-input100 {
	color: #009688;
}

.login100-form-btn {
	border-radius: 10px;
	background: linear-gradient(135deg, var(--login-teal) 0%, var(--login-teal2) 100%);
	box-shadow: 0 8px 26px rgba(0, 201, 167, 0.35);
	transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
	height: 50px;
	font-size: 16px;
}

.login100-form-btn:hover {
	background: var(--login-teal2);
	transform: translateY(-1px);
	box-shadow: 0 12px 32px rgba(0, 201, 167, 0.45);
}

.animated-checkbox .label-text {
	color: var(--login-text-sub);
}

.animated-checkbox {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.login-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 12px 0 14px;
	color: var(--login-text-muted);
	font-size: 0.9rem;
}

.login-divider::before,
.login-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e0ebe9;
}

.oauth-btn {
	border: 1.5px solid #dde8e6 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--login-text-sub) !important;
	padding: 12px !important;
	transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease,
		transform 0.22s ease;
}

.oauth-btn:hover {
	background: rgba(0, 201, 167, 0.1) !important;
	border-color: var(--login-teal) !important;
	color: var(--login-teal2) !important;
	box-shadow: 0 6px 22px rgba(0, 201, 167, 0.22) !important;
	transform: translateY(-2px);
}

.oauth-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 12px rgba(0, 201, 167, 0.18) !important;
}

.oauth-btn:focus-visible {
	outline: none;
	border-color: var(--login-teal) !important;
	box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.28) !important;
}

.oauth-row {
	width: 100%;
	padding-top: 0 !important;
	margin-top: 0;
}


#install_system .btn {
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 999px !important;
	padding: 8px 16px !important;
	font-weight: 600;
	transition: background 0.2s, color 0.2s;
}

#install_system .btn i {
	margin-right: 8px;
}

/* Dark mode: scoped to form column only */
body[data-theme="dark"] .wrap-login100.login-wrap-style {
	background: transparent !important;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form {
	background: #1a2220 !important;
	color: #e8eeec;
	backdrop-filter: blur(28px);
	-webkit-backdrop-filter: blur(28px);
	border-left: 1px solid rgba(255, 255, 255, 0.07);
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .login100-form-title {
	color: #f2f7f5 !important;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .login100-form-subtitle {
	color: rgba(242, 247, 245, 0.72) !important;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .input100-field-label {
	color: rgba(232, 238, 236, 0.62) !important;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .input100 {
	background: #262b29 !important;
	border-color: #3d4a47 !important;
	color: #f2f7f5 !important;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .input100:focus {
	background: #2f3835 !important;
	border-color: #009688;
	box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.28);
}

/* WebKit autofill ignores normal background; inset shadow paints the field dark (matches #262b29 / focus #2f3835). */
body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .input100:-webkit-autofill,
body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .input100:-webkit-autofill:hover,
body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .input100:-webkit-autofill:active {
	-webkit-box-shadow: inset 0 0 0 1000px #262b29 !important;
	box-shadow: inset 0 0 0 1000px #262b29 !important;
	transition: background-color 5000s ease-in-out 0s;
	border: 1.5px solid #3d4a47 !important;
	-webkit-text-fill-color: #f2f7f5 !important;
	caret-color: #f2f7f5;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .input100:-webkit-autofill:focus {
	-webkit-box-shadow: inset 0 0 0 1000px #2f3835, 0 0 0 3px rgba(0, 150, 136, 0.28) !important;
	box-shadow: inset 0 0 0 1000px #2f3835, 0 0 0 3px rgba(0, 150, 136, 0.28) !important;
	transition: background-color 5000s ease-in-out 0s;
	border-color: #009688 !important;
	-webkit-text-fill-color: #f2f7f5 !important;
	caret-color: #f2f7f5;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .symbol-input100 {
	color: rgba(232, 238, 236, 0.55) !important;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .input100:focus+.focus-input100+.symbol-input100 {
	color: #26a69a !important;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .animated-checkbox .label-text {
	color: rgba(232, 238, 236, 0.78) !important;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .login-divider {
	color: rgba(232, 238, 236, 0.55) !important;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .login-divider::before,
body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .login-divider::after {
	background: #3d4a47;
}


body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .oauth-btn {
	background: #262b29 !important;
	border-color: #3d4a47 !important;
	color: #e8eeec !important;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .oauth-btn:hover {
	background: rgba(0, 150, 136, 0.15) !important;
	border-color: #009688 !important;
	color: #80cbc4 !important;
}


/* Tenant background images (paths relative to this CSS file → site root assets/) */
body.login-theme-myasset .container-login100,
body.login-theme-bg-sppb .container-login100,
body.login-theme-bg-aed .container-login100 {
	background-repeat: no-repeat;
	background-position: top left;
	background-size: cover;
}

body.login-theme-myasset .container-login100 {
	background-image: url("../../../assets/myasset-background.png");
}

body.login-theme-bg-sppb .container-login100 {
	background-image: url("../../../assets/sppb-background.png");
}

body.login-theme-bg-aed .container-login100 {
	background-image: url("../../../assets/aed-background.png");
}

/* myasset: yellow left panel */
body.login-theme-myasset .wrap-login100.login-wrap-style .login100-pic {
	background: rgba(247, 210, 90, 0.9);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-right-color: rgba(0, 0, 0, 0.1);
}

body.login-theme-myasset .wrap-login100.login-wrap-style .login100-pic .glass-brand-name,
body.login-theme-myasset .wrap-login100.login-wrap-style .login100-pic .glass-title {
	color: #1e293b;
}

body.login-theme-myasset .wrap-login100.login-wrap-style .login100-pic .glass-subtitle {
	color: rgba(30, 41, 59, 0.78);
}

body.login-theme-myasset .wrap-login100.login-wrap-style .login100-pic .glass-brand-icon {
	border-color: rgba(0, 0, 0, 0.12);
	background: rgba(255, 255, 255, 0.55);
	color: #0f172a;
}

body.login-theme-myasset .wrap-login100.login-wrap-style .login100-pic .glass-stat-card {
	background: rgba(255, 255, 255, 0.42);
	border-color: rgba(0, 0, 0, 0.1);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

body.login-theme-myasset .wrap-login100.login-wrap-style .login100-pic .glass-stat-icon {
	background: rgba(255, 255, 255, 0.75);
	color: #0f172a;
}

body.login-theme-myasset .wrap-login100.login-wrap-style .login100-pic .glass-stat-value {
	color: #0f172a;
}

body.login-theme-myasset .wrap-login100.login-wrap-style .login100-pic .glass-stat-label {
	color: rgba(15, 23, 42, 0.68);
}

@media (max-width: 992px) {
	.wrap-login100.login-wrap-style {
		border-radius: 16px;
	}

	.login100-pic {
		display: none;
	}

	.login100-form {
		padding: 40px 28px;
	}
}

/* Register.php: form only (no left column) */
.wrap-login100.login-wrap-style.login-register-solo {
	max-width: 720px;
}

.wrap-login100.login-wrap-style.login-register-solo .login100-form {
	width: 100%;
}

/* Forgot password + shared loaders (Forgot_Password.php) */
.login-form-loader-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	color: var(--login-text-sub);
	font-size: 0.9375rem;
}

body[data-theme="dark"] .login-form-loader-overlay {
	background: rgba(26, 34, 32, 0.92);
	color: rgba(232, 238, 236, 0.85);
}

.login100-form .forgot-lead {
	font-size: 0.9rem;
	color: var(--login-text-sub);
	line-height: 1.65;
	margin-bottom: 4px;
	text-align: left;
}

.login100-form .forgot-note {
	font-size: 0.8125rem;
	color: #b71c1c;

	margin-top: 14px;
	margin-bottom: 0;
	text-align: left;
}

.login100-form .forgot-success-text {
	font-size: 0.95rem;
	color: var(--login-text);
	line-height: 1.65;
	text-align: left;
	margin-bottom: 8px;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .forgot-lead {
	color: rgba(242, 247, 245, 0.72) !important;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .forgot-note {
	color: #ffab91 !important;
}

body[data-theme="dark"] .wrap-login100.login-wrap-style>.login100-form .forgot-success-text {
	color: #f2f7f5 !important;
}