:root {
	--tgr-red: #dd0000;
	--tgr-red-hover: #b80000;
	--tgr-black: #0a0a0a;
	--tgr-surface: #141414;
	--tgr-surface-elevated: #1c1c1c;
	--tgr-border: rgba(255, 255, 255, 0.1);
	--tgr-text: #f5f5f5;
	--tgr-text-muted: #9a9a9a;
	--tgr-present: #45b658;
	--tgr-absent: #ee4141;
	--tgr-radius: 1rem;
	--tgr-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

.tgr-auth-body {
	margin: 0;
	min-height: 100vh;
	font-family: "DM Sans", system-ui, -apple-system, sans-serif;
	color: var(--tgr-text);
	background:
		radial-gradient(ellipse 80% 50% at 50% -20%, rgba(221, 0, 0, 0.18), transparent),
		radial-gradient(ellipse 60% 40% at 100% 100%, rgba(221, 0, 0, 0.08), transparent),
		var(--tgr-black);
}

.tgr-login-page {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 1rem 2.5rem;
}

.tgr-login-promo {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 20;
}

.tgr-login-promo .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tgr-text);
	background: var(--tgr-surface-elevated);
	border: 1px solid var(--tgr-border);
	border-radius: 999px;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.tgr-login-promo .btn:hover {
	color: #fff;
	background: var(--tgr-red);
	border-color: var(--tgr-red);
}

.tgr-login-shell {
	width: 100%;
	max-width: 920px;
}

.tgr-login-brand {
	text-align: center;
	margin-bottom: 2rem;
}

.tgr-login-brand img {
	max-height: 88px;
	width: auto;
	height: auto;
}

.tgr-login-location {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin: 0 0 2rem;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tgr-text-muted);
	text-align: center;
}

.tgr-login-location::before,
.tgr-login-location::after {
	content: "";
	flex: 0 1 56px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35));
}

.tgr-login-location::after {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent);
}

.tgr-login-card {
	background: var(--tgr-surface);
	border: 1px solid var(--tgr-border);
	border-radius: calc(var(--tgr-radius) + 0.25rem);
	box-shadow: var(--tgr-shadow);
	padding: 2rem 1.5rem;
}

@media (min-width: 576px) {
	.tgr-login-card {
		padding: 2.25rem 2.5rem;
	}
}

.tgr-login-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	font-weight: 600;
	text-align: center;
}

.tgr-login-card__subtitle {
	margin: 0 0 1.75rem;
	font-size: 0.9rem;
	text-align: center;
	color: var(--tgr-text-muted);
}

.tgr-login-alert {
	margin-bottom: 1.25rem;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	text-align: center;
	color: #ffb4b4;
	background: rgba(221, 0, 0, 0.12);
	border: 1px solid rgba(221, 0, 0, 0.35);
	border-radius: 0.65rem;
}

.tgr-login-empty {
	text-align: center;
	padding: 1rem 0 0.5rem;
}

.tgr-login-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	margin-bottom: 1rem;
	font-size: 1.75rem;
	color: var(--tgr-text-muted);
	background: var(--tgr-surface-elevated);
	border-radius: 50%;
}

.tgr-login-empty__message {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
}

/* Employee grid */
.tgr-employees-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	padding: 0.5rem 0 0.25rem;
}

.tgr-employees-grid > li {
	min-width: 0;
}

.tgr-employee-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 1rem 0.5rem;
	text-decoration: none;
	color: inherit;
	border-radius: var(--tgr-radius);
	transition: transform 0.2s, background 0.2s;
}

@media (min-width: 576px) {
	.tgr-employees-grid {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1.25rem 1.5rem;
	}

	.tgr-employees-grid > li {
		flex: 0 0 auto;
	}

	.tgr-employee-card {
		width: 148px;
		padding: 1.25rem;
	}
}

.tgr-employee-card:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.04);
	transform: translateY(-3px);
}

.tgr-employee-card__avatar {
	position: relative;
	width: 88px;
	height: 88px;
	margin-bottom: 0.85rem;
}

.tgr-employee-card__avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--tgr-absent);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.tgr-employee-card__avatar--present img {
	border-color: var(--tgr-present);
}

.tgr-employee-card__initials {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	font-weight: 600;
	color: #fff;
	pointer-events: none;
}

.tgr-employee-card:hover .tgr-employee-card__avatar img {
	box-shadow: 0 0 0 2px var(--tgr-red), 0 12px 28px rgba(221, 0, 0, 0.35);
}

.tgr-employee-card__name {
	margin: 0;
	width: 100%;
	font-size: 0.95rem;
	font-weight: 500;
	text-align: center;
	color: var(--tgr-text-muted);
	transition: color 0.2s;
}

.tgr-employee-card:hover .tgr-employee-card__name {
	color: #fff;
}

/* Lockscreen / selected user */
.tgr-user-login {
	max-width: 420px;
	margin: 0 auto;
}

.tgr-user-login__profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 1.75rem;
}

.tgr-user-login__avatar {
	position: relative;
	width: 104px;
	height: 104px;
	margin-bottom: 1rem;
}

.tgr-user-login__avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--tgr-absent);
}

.tgr-user-login__avatar--present img {
	border-color: var(--tgr-present);
}

.tgr-user-login__initials {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	font-weight: 600;
	color: #fff;
}

.tgr-user-login__name {
	margin: 0 0 0.25rem;
	font-size: 1.4rem;
	font-weight: 600;
	text-align: center;
}

.tgr-user-login__username {
	margin: 0;
	font-size: 0.85rem;
	text-align: center;
	color: var(--tgr-text-muted);
}

.tgr-user-login__username span {
	color: #6e6e6e;
}

.tgr-user-login .form-control {
	padding: 0.8rem 1rem;
	font-size: 1rem;
	color: var(--tgr-text);
	background: var(--tgr-surface-elevated);
	border: 1px solid var(--tgr-border);
	border-radius: 0.65rem 0 0 0.65rem;
}

.tgr-user-login .form-control:focus {
	color: var(--tgr-text);
	background: var(--tgr-surface-elevated);
	border-color: var(--tgr-red);
	box-shadow: 0 0 0 0.2rem rgba(221, 0, 0, 0.2);
}

.tgr-user-login .form-control::placeholder {
	color: #666;
}

.tgr-user-login .btn-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.1rem;
	color: #fff;
	background: var(--tgr-red);
	border: 1px solid var(--tgr-red);
	border-radius: 0 0.65rem 0.65rem 0;
	transition: background 0.2s;
}

.tgr-user-login .btn-submit:hover {
	background: var(--tgr-red-hover);
	border-color: var(--tgr-red-hover);
}

.tgr-user-login .btn-submit:disabled,
.tgr-user-login .btn-submit.is-loading {
	opacity: 0.85;
	cursor: not-allowed;
	pointer-events: none;
}

.tgr-user-login__hint {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	text-align: center;
	color: var(--tgr-text-muted);
}

.tgr-user-login__switch {
	display: inline-block;
	margin-top: 1.25rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--tgr-red);
	text-decoration: none;
}

.tgr-user-login__switch:hover {
	color: #ff3333;
}

/* Manual login */
.tgr-manual-login {
	max-width: 360px;
	margin: 0 auto;
}

.tgr-manual-login .form-label {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--tgr-text-muted);
}

.tgr-manual-login .input-group-text {
	color: var(--tgr-text-muted);
	background: var(--tgr-surface-elevated);
	border: 1px solid var(--tgr-border);
	border-right: 0;
}

.tgr-manual-login .form-control {
	padding: 0.75rem 1rem;
	color: var(--tgr-text);
	background: var(--tgr-surface-elevated);
	border: 1px solid var(--tgr-border);
}

.tgr-manual-login .form-control:focus {
	color: var(--tgr-text);
	background: var(--tgr-surface-elevated);
	border-color: var(--tgr-red);
	box-shadow: 0 0 0 0.2rem rgba(221, 0, 0, 0.15);
}

.tgr-manual-login .form-control.is-invalid {
	border-color: var(--tgr-absent);
}

.tgr-manual-login .invalid-feedback {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
}

.tgr-btn-sign-in {
	width: 100%;
	padding: 0.8rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: var(--tgr-red);
	border: none;
	border-radius: 0.65rem;
	transition: background 0.2s, transform 0.15s;
}

.tgr-btn-sign-in:hover {
	background: var(--tgr-red-hover);
	color: #fff;
}

.tgr-btn-sign-in:active {
	transform: scale(0.98);
}

.tgr-btn-sign-in:disabled,
.tgr-btn-sign-in.is-loading {
	opacity: 0.85;
	cursor: not-allowed;
	pointer-events: none;
	transform: none;
}
