﻿/* Login Layout — Body-level overrides */
body.login-page {
	background: #0f172a !important;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #fff !important;
	margin: 0;
	padding: 0;
}

/* Background image */
.login-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('/resources/images/shacman_hero_truck.png') no-repeat center center;
	background-size: cover;
	filter: brightness(0.3) grayscale(0.2);
	z-index: -1;
}

.login-bg::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at center, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
}

/* Glass card */
.login-card {
	background: rgba(30, 41, 59, 0.7);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	width: 450px;
	padding: 50px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.login-logo {
	text-align: center;
	margin-bottom: 40px;
}

.login-logo img {
	width: 180px;
}

/* Form elements */
.login-form-container .form-label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.85rem;
	color: var(--accent-blue) !important;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.login-form-container .form-control {
	width: 100%;
	background: rgba(15, 23, 42, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 12px 16px;
	color: #fff !important;
	margin-bottom: 25px;
	transition: var(--transition);
	font-family: inherit;
	box-sizing: border-box;
	font-size: 1rem;
}

.login-form-container .form-control:focus {
	outline: none;
	border-color: var(--accent-blue);
	background: rgba(15, 23, 42, 0.8);
	box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.btn-login-submit {
	width: 100%;
	background: var(--accent-amber);
	color: #000 !important;
	border: none;
	padding: 14px;
	border-radius: 10px;
	font-weight: 800;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: var(--transition);
	margin-top: 10px;
	box-sizing: border-box;
	font-family: inherit;
}

.btn-login-submit:hover {
	background: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-login-submit:active {
	transform: translateY(0);
}

.btn-login-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

/* Footer links */
.login-footer-links {
	margin-top: 30px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.login-link {
	color: rgba(255, 255, 255, 0.5) !important;
	text-decoration: none;
	font-size: 0.9rem;
	transition: var(--transition);
}

.login-link:hover {
	color: var(--accent-blue) !important;
}

/* Message area */
.message-area {
	min-height: 24px;
	margin-top: 15px;
}

.message-label {
	display: block;
	text-align: center;
	font-weight: 600;
	font-size: 0.9rem;
}

.message-label.error {
	color: #ff5555 !important;
}

.message-label.success {
	color: #10b981 !important;
}

/* ── Password Reset ── */
.reset-header {
	text-align: center;
	margin-bottom: 28px;
}

.reset-subtitle {
	margin: 0;
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.5;
}

.reset-success,
.reset-invalid-key {
	text-align: center;
	padding: 10px 0;
}

.reset-rules {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 24px;
	padding: 16px 18px;
	background: rgba(15, 23, 42, 0.4);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.reset-rule {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.4);
	display: flex;
	align-items: center;
	gap: 8px;
	transition: color 0.2s;
}

.reset-rule.valid {
	color: #10b981;
}

.reset-rule.invalid {
	color: #ff5555;
}

/* ── Terms & Conditions Acceptance ── */
.tc-accept-container {
	padding: 10px 0;
}

.tc-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	padding: 12px 16px;
	background: rgba(15, 23, 42, 0.4);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: border-color 0.2s;
}

.tc-checkbox-label:hover {
	border-color: rgba(255, 255, 255, 0.15);
}

.tc-checkbox {
	width: 18px;
	height: 18px;
	accent-color: var(--accent-amber);
	cursor: pointer;
	flex-shrink: 0;
}

.tc-link {
	color: var(--accent-amber) !important;
	text-decoration: underline;
	font-weight: 600;
}

.tc-link:hover {
	color: #fff !important;
}

/* ── Terms & Conditions Full Page ── */
.login-card:has(.tc-page-content) {
	width: 900px;
}

.tc-page-content {
	max-height: 65vh;
	overflow-y: auto;
	padding: 10px 4px 10px 0;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.tc-page-content::-webkit-scrollbar {
	width: 6px;
}

.tc-page-content::-webkit-scrollbar-track {
	background: transparent;
}

.tc-page-content::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 3px;
}

.tc-article {
	margin-bottom: 20px;
}

.tc-article h4 {
	margin: 0 0 8px;
	font-size: 0.92rem;
	color: var(--accent-amber);
	font-weight: 700;
}

.tc-article p {
	margin: 0 0 8px;
	font-size: 0.84rem;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.65;
}

.tc-article ul {
	margin: 0 0 8px;
	padding-left: 20px;
}

.tc-article li {
	font-size: 0.84rem;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.65;
	margin-bottom: 4px;
}