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

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
	/* Colors - Primary */
	--color-primary: #5954f8;
	--color-primary-hover: #4540d4;

	/* Colors - Text */
	--color-text-dark: #333;
	--color-text-medium: #666;
	--color-text-light: #737373;
	--color-text-muted: #999;

	/* Colors - Background */
	--color-bg-white: #fff;
	--color-bg-light: #f5f5f5;
	--color-bg-overlay: rgba(255, 255, 255, 0.9);

    --backdrop-filter-overlay: saturate(1.1) blur(.5rem);

	/* Colors - Status */
	--color-status-success: #3c763d;
	--color-status-success-dark: #2e7d32;
	--color-status-success-light: #1b5e20;
	--color-status-success-bg: #e8f5e9;

	--color-status-warning: #f1c40f;
	--color-status-warning-dark: #f9a825;
	--color-status-warning-text: #e65100;
	--color-status-warning-bg: #fff8e1;

	--color-status-error: #e67e22;
	--color-status-error-dark: #c62828;
	--color-status-error-light: #b71c1c;
	--color-status-error-bg: #ffebee;

	/* Colors - Border */
	--color-border: #dcdcdc;

	/* Spacing */
	--spacing-xs: 5px;
	--spacing-sm: 10px;
	--spacing-md: 15px;
	--spacing-lg: 20px;
	--spacing-xl: 40px;
	--spacing-2xl: 80px;

	/* Border Radius */
	--radius-sm: 3px;
	--radius-md: 5px;
	--radius-lg: 8px;
	--radius-full: 50%;

	/* Shadows */
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
	--shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 2px 10px rgba(0, 0, 0, 0.25);
	--shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);

	/* Transitions */
	--transition-fast: 0.2s ease;
	--transition-base: 0.3s ease;
	--transition-slow: 0.5s ease;

	/* Typography */
	--font-family: 'Open Sans', sans-serif;
	--font-family-headings: 'Poppins', sans-serif;
	--font-size-xs: 11px;
	--font-size-sm: 12px;
	--font-size-base: 10pt;
	--font-size-md: 14px;
	--font-size-lg: 18px;
	--font-size-input: 12pt;
	--font-size-button: 13pt;

	/* Animation */
	--animation-duration: 2s;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes spin {
	0% {
		transform: rotate(0deg);
		opacity: 0;
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes blur {
	from { filter: blur(0); }
	to { filter: blur(5px); }
}

@keyframes fadeup {
	from {
		opacity: 0;
		bottom: -200px;
	}
	to {
		opacity: 1;
		bottom: 0;
	}
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
	margin: 0;
	transition: var(--transition-base);
}

body {
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	overflow: hidden;
	background: url("/bernini/images/shoptrader-login-wallpaper.jpg") no-repeat fixed center;
	background-size: cover;
}

#background_image img {
	display: none;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
/* Visually hidden class for screen readers (WCAG 1.3.1) */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Focus styles for keyboard navigation (WCAG 2.4.7) */
a:focus,
input:focus,
button:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Focus-visible for modern browsers - only show focus on keyboard navigation */
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	outline: none;
}

a:focus-visible,
input:focus-visible,
button:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Card focus state */
.update-card:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	box-shadow: var(--shadow-hover);
}

.update-card:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Indicator focus state */
.indicator--desktop:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* ==========================================================================
   Error Message
   ========================================================================== */
.error_message,
.success_message {
	position: relative;
	padding: var(--spacing-xs);
	color: var(--color-bg-white);
	z-index: 10;
}

.error_message {
	background: #ff0000;
}

.success_message {
	background: #28a745;
}

/* ==========================================================================
   Layout - Container
   ========================================================================== */
.container-wrapper_login {
	display: flex;
	flex-direction: row;
	min-height: 100vh;
}

/* ==========================================================================
   Updates Section (Left Panel)
   ========================================================================== */
.updates-wrapper {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-2xl) var(--spacing-xl);
	background: var(--color-bg-overlay);
    backdrop-filter: var(--backdrop-filter-overlay);
	box-sizing: border-box;
	overflow: hidden;
}

.updates-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 500px;
	height: 100%;
	max-height: calc(100vh - 160px);
	animation: fadeup var(--animation-duration);
}

.updates-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	margin-bottom: var(--spacing-xl);
}

.status-section {
	flex-shrink: 0;
}

.updates-section h2,
.status-section h2 {
	flex-shrink: 0;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-family-headings);
	font-size: var(--font-size-lg);
	font-weight: 600;
	color: var(--color-text-dark);
}

/* ==========================================================================
   Update Cards
   ========================================================================== */
.updates-cards {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
	min-height: 0;
	overflow-y: auto;
	padding: var(--spacing-md);
	margin: calc(var(--spacing-md) * -1);
}

.update-card {
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: stretch;
	background: var(--color-bg-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.update-card:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}

/* Stretched link - makes entire card clickable */
.update-card__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.update-card__link:focus {
	outline: none;
}

/* Show focus on card when link is focused (keyboard navigation) */
.update-card:focus-within {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	box-shadow: var(--shadow-hover);
}

.update-card:has(.update-card__link:focus:not(:focus-visible)) {
	outline: none;
	box-shadow: var(--shadow-md);
}

.update-card:has(.update-card__link:focus-visible) {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	box-shadow: var(--shadow-hover);
}

.update-card__image {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	background: var(--color-bg-light);
}

.update-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.update-card__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 12px var(--spacing-md);
}

.update-card__title {
	margin: 0 0 var(--spacing-xs) 0;
	font-size: var(--font-size-md);
	font-weight: 600;
	color: var(--color-text-dark);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.update-card__text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	margin: 0 0 var(--spacing-sm) 0;
	font-size: var(--font-size-sm);
	line-height: 1.4;
	color: var(--color-text-medium);
	overflow: hidden;
}

.update-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.update-card__date {
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
}

.update-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--color-primary);
	border-radius: 6px;
	color: var(--color-bg-white);
	transition: background var(--transition-fast);
}

.update-card:hover .update-card__button {
	background: var(--color-primary-hover);
}

/* ==========================================================================
   Login Section (Right Panel)
   ========================================================================== */
.login-wrapper {
	flex: 1 1 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	box-sizing: border-box;
}

#wrapper {
	position: relative;
	padding: var(--spacing-xl);
	width: 300px;
	background: var(--color-bg-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	z-index: 1;
	animation: fadeup var(--animation-duration);
}

#wrapper a {
	text-align: left;
}

#wrapper a,
.release {
	color: var(--color-text-light);
}

/* ==========================================================================
   Logo
   ========================================================================== */
#logo {
	position: relative;
	margin: -100px auto 50px;
	padding: 23px;
	width: 120px;
	height: 120px;
	text-align: center;
	box-sizing: border-box;
	animation: spin 0.25s ease;
	animation-delay: 1s;
}

#logo.done {
	background-color: var(--color-bg-white);
	border-radius: var(--radius-full);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#logo img {
	max-width: 70px;
	opacity: 0;
	transition: all 0.2s ease-in-out;
}

#logo img.done {
	transform: scale(0.8);
	opacity: 1;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.right {
	display: inline-block;
	width: 50%;
}

.release {
	display: inline-block;
	float: right;
}

span.release {
	float: right;
}

.form-field {
	position: relative;
	margin-bottom: var(--spacing-sm);
	transition: var(--transition-slow);
}

.form-field.last {
	margin-top: -5px;
}

/* Icons */
.icon-user {
	display: none;
	width: 40px;
	height: 40px;
}

.icon-password {
	display: block;
	position: absolute;
	top: 2px;
	left: 0;
	width: 46px;
	height: 46px;
	border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.icon-mail {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 46px;
	height: 48px;
	background: url("../images/icon-mail.png") no-repeat;
}

.icon-2factor {
	display: block;
	position: absolute;
	top: 0;
	right: 4px;
	width: 46px;
	height: 48px;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: url("../images/icon-2factor.png") no-repeat;
}

/* Input Fields */
input[type="password"],
input[type="text"] {
	width: 298px;
	height: 48px;
	padding: var(--spacing-sm);
	background-color: rgba(255, 255, 255, 0.39);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	box-shadow: 0 1px 5px rgba(155, 155, 155, 0.16);
	box-sizing: border-box;
	font-family: var(--font-family);
	font-size: var(--font-size-input);
	font-weight: normal;
	color: var(--color-text-dark);
	transition: var(--transition-base);
}

input[type="password"]:hover,
input[type="text"]:hover {
	box-shadow: var(--shadow-sm);
}

input[type="password"]:focus,
input[type="text"]:focus {
	box-shadow: var(--shadow-sm);
	border-color: var(--color-primary);
	outline: 2px solid var(--color-primary);
	outline-offset: 0;
}

input[type="password"]:focus:not(:focus-visible),
input[type="text"]:focus:not(:focus-visible) {
	outline: none;
}

input[type="password"]:focus-visible,
input[type="text"]:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 0;
}

/* Password Toggle */
.password-field {
	position: relative;
}

.password-field input {
	padding-right: 40px !important;
	box-sizing: border-box;
}

.password-toggle {
	position: absolute;
	top: 1px;
	right: 1px;
	height: calc(100% - 2px);
	width: 36px;
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--color-text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.password-toggle:hover {
	color: var(--color-text-dark);
	background: rgba(0, 0, 0, 0.05);
}

.password-toggle:focus {
	outline: none;
}

.password-toggle:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Submit Button */
input[type="submit"] {
	width: 298px;
	height: 46px;
	margin-bottom: var(--spacing-md);
	background-color: var(--color-primary);
	border: none;
	border-radius: 2px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
	font-family: var(--font-family);
	font-size: var(--font-size-button);
	font-weight: normal;
	color: var(--color-bg-white);
	cursor: pointer;
	transition: var(--transition-base);
}

input[type="submit"]:hover {
	transform: scale(0.98);
}

input[type="submit"]:focus {
	outline: 2px solid var(--color-primary-hover);
	outline-offset: 2px;
}

input[type="submit"]:focus:not(:focus-visible) {
	outline: none;
}

input[type="submit"]:focus-visible {
	outline: 2px solid var(--color-primary-hover);
	outline-offset: 2px;
}

/* ==========================================================================
   Status Indicator
   ========================================================================== */
.indicator {
	position: relative;
	display: flex;
	align-items: center;
	margin-top: var(--spacing-lg);
	padding: 7px var(--spacing-xl);
	width: 300px;
	height: 40px;
	background: var(--color-bg-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	line-height: 40px;
	color: var(--color-text-light);
	z-index: 1;
	animation: fadeup var(--animation-duration);
}

.indicator--mobile {
	display: none;
}

.indicator--desktop {
	display: flex;
	justify-content: space-between;
	margin-top: 0;
	padding: 12px 16px;
	width: auto;
	height: auto;
	box-shadow: var(--shadow-md);
	line-height: 1.4;
	text-decoration: none;
	transition: box-shadow var(--transition-fast), transform var(--transition-fast);
	animation: none;
}

.indicator--desktop:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}

.indicator--desktop .bullet-status {
	flex-shrink: 0;
	align-self: center;
	margin: 0 12px 0 0;
}

.indicator__text {
	flex: 1;
	font-weight: 600;
}

.indicator__chevron {
	flex-shrink: 0;
	margin-left: 12px;
}

/* Status Colors - Desktop */
.indicator--desktop.indicator--none {
	background-color: var(--color-status-success-bg);
	border: 1px solid var(--color-status-success-dark);
	color: var(--color-status-success-light);
}

.indicator--desktop.indicator--none .bullet-status {
	background-color: var(--color-status-success-dark);
}

.indicator--desktop.indicator--minor {
	background-color: var(--color-status-warning-bg);
	border: 1px solid var(--color-status-warning-dark);
	color: var(--color-status-warning-text);
}

.indicator--desktop.indicator--minor .bullet-status {
	background-color: var(--color-status-warning-dark);
}

.indicator--desktop.indicator--major {
	background-color: var(--color-status-error-bg);
	border: 1px solid var(--color-status-error-dark);
	color: var(--color-status-error-light);
}

.indicator--desktop.indicator--major .bullet-status {
	background-color: var(--color-status-error-dark);
}

/* Bullet Status */
.bullet-status {
	float: left;
	margin: 15px 10px 0 20px;
	width: 10px;
	height: 10px;
	border-radius: var(--radius-full);
	line-height: 40px;
	transition: background-color var(--transition-slow);
}

.bullet-status-none {
	background-color: var(--color-status-success);
}

.bullet-status-minor {
	background-color: var(--color-status-warning);
}

.bullet-status-major {
	background-color: var(--color-status-error);
}

/* Legacy Indicator Classes */
.indicatorNone,
.indicatorNone a {
	color: var(--color-status-success) !important;
	font-weight: bold;
	text-decoration: none;
}

.indicatorMinor,
.indicatorMinor a {
	color: var(--color-status-warning) !important;
	font-weight: bold;
	text-decoration: none;
}

.indicatorMajor,
.indicatorMajor a {
	color: var(--color-status-error) !important;
	font-weight: bold;
	text-decoration: none;
}

/* Inline Indicator (inside wrapper) */
.indicator-wrapper {
	margin-top: var(--spacing-lg);
	padding-top: var(--spacing-md);
	border-top: 1px solid var(--color-border);
}

.indicator--inline {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	margin: 0;
	width: auto;
	height: auto;
	background: var(--color-bg-light);
	border-radius: var(--radius-sm);
	box-shadow: none;
	font-size: var(--font-size-sm);
	line-height: 1.4;
	text-decoration: none;
	animation: none;
}

.indicator--inline .bullet-status {
	float: none;
	flex-shrink: 0;
	margin: 0 8px 0 0;
}

.indicator--inline:hover {
	background: var(--color-border);
}

.indicator--inline.indicator--none {
	color: var(--color-status-success);
}

.indicator--inline.indicator--minor {
	color: var(--color-status-warning-text);
}

.indicator--inline.indicator--major {
	color: var(--color-status-error-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer a {
	color: var(--color-bg-white);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media only screen and (max-width: 900px) {
	.container-wrapper_login {
		flex-direction: column;
	}

	.updates-wrapper {
		display: none;
	}

	.login-wrapper {
		min-height: 100vh;
	}

	.indicator--mobile {
		display: flex;
	}
}

@media only screen and (max-width: 661px) {
	#wrapper {
		width: calc(90% - 80px) !important;
		margin: 0 !important;
		padding: var(--spacing-xl);
	}

	.indicator {
		margin-top: var(--spacing-lg);
		padding: var(--spacing-sm) var(--spacing-xl);
		width: calc(90% - 80px) !important;
	}

	input[type="password"],
	input[type="text"] {
		width: 100% !important;
	}

	input[type="submit"] {
		width: 100%;
	}
}

/* ==========================================================================
   shoptraderLite — token-override (fris indigo/violet + Inter).
   Hergebruikt het bestaande login-token-systeem; alleen de waarden wijzigen,
   zodat de hele login meekleurt zonder de structuur te raken.
   ========================================================================== */
:root {
	--color-primary: #4f46e5;
	--color-primary-hover: #4338ca;

	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;

	--shadow-sm: 0 1px 2px rgba(30, 34, 53, .06), 0 1px 3px rgba(30, 34, 53, .07);
	--shadow-md: 0 4px 14px rgba(30, 34, 53, .08);
	--shadow-hover: 0 14px 38px rgba(30, 34, 53, .16);

	--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--font-family-headings: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}