:root {
	--brand-color: #53195b;
}


#agdaPSByVismaLogoPurple {
	background: url(/AgdaEntre/images/login/AgdaPS_ByVisma_logo_RGB_Purple.svg);
	height: 68.7px;
	margin: auto;
	width: 200px;
}

.loginWrapper,
.loginForgottenWrapper,
.resetPwdWrapper, 
.privacyWrapper {
	display: flex;
	box-sizing: border-box;
	flex-direction: column;
	content: '';
	width: 100vw;
	height: 100vh;
	background: url(/AgdaEntre/images/login/colorful-blobs-2x.png) left bottom var(--brand-color);
	background-size: contain;
	background-repeat: no-repeat;
	font-family: 'Open Sans', 'OpenSansFallback', sans-serif;
}

#errorContainer {
	overflow-y: auto;
	max-height: 160px;
}

.hide-span>span {
	display: none;
}

.roundedCorners {
	border-radius: 1rem !important;
}

@media (max-width: 610px) {
	.panel.loginPanel {
		width: 90%;
	}
}


.panel.loginPanel {
	border: 0;
	-webkit-box-shadow: 18px 0 40px 0 rgba(23, 33, 38, 0.25);
	-moz-box-shadow: 18px 0 40px 0 rgba(23, 33, 38, 0.25);
	box-shadow: 18px 0 40px 0 rgba(23, 33, 38, 0.25);
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 350px;

	h2 {
		margin: 0;
		padding: 0;
		font-size: 40px;
		font-weight: normal;
		line-height: 48px;
		color: #048bd9;
		border: 0;
	}

	@media (max-width: 400px) {
		h2 {
			margin: 0;
			padding: 0;
			font-size: 30px;
			font-weight: normal;
			line-height: 48px;
			color: #048bd9;
			border: 0;
		}
	}

	h3 {
		font-weight: 600;
		border: 0;
	}

	>.panel-heading {
		padding: 10px 40px 9px;
	}

	>.panel-body {
		padding: 40px 40px 20px;
	}

	>.panel-body,
	>.panel-footer {
		background-color: #fff;
		border: 0;
	}

	>.panel-footer {
		position: relative;
		padding: 18px 40px;
		text-align: center;
	}

	>.panel-footer::after {
		display: block;
		position: absolute;
		content: '';
		width: 100%;
		height: 1px;
		top: 0;
		left: 0;
		background: -moz-linear-gradient(left, rgba(235, 235, 235, 0) 0%, #ebebeb 20%, #ebebeb 80%, rgba(235, 235, 235, 0) 100%);
		background: -webkit-linear-gradient(left, rgba(235, 235, 235, 0) 0%, #ebebeb 20%, #ebebeb 80%, rgba(235, 235, 235, 0) 100%);
		background: linear-gradient(to right, rgba(235, 235, 235, 0) 0%, #ebebeb 20%, #ebebeb 80%, rgba(235, 235, 235, 0) 100%);
	}

	>.panel-footer img {
		height: 24px;
		vertical-align: middle;
		border: 0;
	}

	.form-group {
		min-height: 0;
		margin-bottom: 9px;
	}

	/* DEV: Is it used in this combination? */
	.form-group.mainred {
		padding: 0;
		margin-bottom: 9px;
		color: #d73941;
		font-weight: 600;
		background-color: transparent;
	}

	.form-group.rememberMe {
		min-height: auto;
		min-height: initial;
		margin-bottom: 0;
	}

	.form-horizontal {
		margin-bottom: 0;
	}

	label {
		font-weight: 600;
	}

	@media (min-width: 769px) {
		label {
			text-align: right;
		}
	}

	.input-field,
	input[type="text"],
	input[type="password"] {
		height: 40px !important;
		max-width: 100%;
		padding: 4px 10px;
		color: #282828 !important;
		font-size: 14px;
		border: 0;
		-webkit-border-radius: 5px;
		-moz-border-radius: 5px;
		border-radius: 5px;
		background-color: #ffffff;
		-webkit-box-shadow: 0 0 0 1px #c8c8c8 inset;
		-moz-box-shadow: 0 0 0 1px #c8c8c8 inset;
		box-shadow: 0 0 0 1px #c8c8c8 inset;
		width: 100%;
	}


	.form-group label {
		cursor: default;
		padding-top: 5px;
		padding-bottom: 5px;
		line-height: 145%;
		text-align: left;
	}

	.text-danger {
		color: #dc3545 !important;
	}

	.input-field:focus, input[type="text"]:focus, input[type="password"]:focus {
		outline: none;
		box-shadow: 0 0 0 1px hsla(220, 100%, 50%, 80%);
		background: #ffffff !important;
	}


	.input-checkbox input[type="checkbox"],
	.input-icon input[type="checkbox"] {
		display: none;
	}



	.btn.primary {
		background: #2d7048 !important;
		border: 1px solid #2d7048;
		border-radius: 20px !important;
		color: white;

	}

	.btn.primary:hover {
		opacity: 0.9;
		border: 1px solid #2d7048;
	}

	.btn.primary:focus {
		outline: none;
		box-shadow: 0 0 0 1px hsla(220, 100%, 50%, 80%);
	}


	.btn.link {
		background: transparent;
		border: 0;
		padding-top: 10px;
		font-weight: 400;
		color: var(--brand-color);
	}

	.btn {
		display: inline-block;
		box-sizing: border-box;
		font-weight: 400;
		text-align: center;
		vertical-align: middle;
		-webkit-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
		background-color: transparent;
		border: 1px solid transparent;
		height: 40px;
		margin: 0;
		min-width: auto !important;
		padding-top: 8px;
		width: 100%;
	}

	.secondary-action-link {
		text-align: center;
		padding-top: 8px;
	}
	.secondary-action-link a {
		color: var(--brand-color, #400049);
		font-weight: 400;
	}

	
	.agdaCheckBox {
		padding-left: 0;
		margin-right: 6px;
	}

	.agdaCheckBox label {
		overflow: initial;
	}

	.agdaCheckBox label::before {
		display: inline-block;
		overflow: visible;
		position: relative;
		margin-right: 6px;
		top: 3px;
		left: 0;
	}

	.vismaicon-preview.vismaicon-sm:before {
		background-image: url(img/vismaicons/worksurface/16_preview_black.svg);
	}
}

label.vismaicon-preview {
	cursor: pointer;
}

.vismaicon.modal-link,
.inptResedata .vismaicon-search {
	padding-left: 3px;
}

.vismaicon-sm.modal-link::before {
	top: 2px;
}

.inptResedata .vismaicon-sm.vismaicon-search::before {
	top: -4px;
}

.vismaicon.modal-link,
.inptResedata .vismaicon-search {
	padding-left: 3px;
}

.vismaicon-sm.modal-link::before {
	top: 2px;
}

.search-group.search-group-primary .form-control:focus {
	border-radius: 15px;
	padding-left: 30px;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
	-webkit-text-fill-color: #282828 !important;
}

/* Mobile responsive adjustments with static pixel values */
@media (max-width: 768px) {
	.modal-consent {
		padding: 10px;
		align-items: flex-start;
		padding-top: 20px;
	}
	
	.modal-consent .modal-content {
		max-width: 520px;
		width: 100%;
		max-height: 95vh;
		padding: 16px;
		margin: 0;
		border-radius: 6px;
	}
}

@media (max-width: 600px) {
	.modal-consent .modal-content {
		max-width: 450px;
	}
}

@media (max-width: 480px) {
	.modal-consent .modal-content {
		max-width: 420px;
		padding: 12px;
		max-height: 98vh;
		border-radius: 4px;
	}
}

@media (max-width: 414px) {
	.modal-consent .modal-content {
		max-width: 380px;
	}
}

@media (max-width: 375px) {
	.modal-consent .modal-content {
		max-width: 340px;
	}
}

@media (max-width: 360px) {
	.modal-consent .modal-content {
		max-width: 320px;
		padding: 10px;
		border-radius: 2px;
	}
}

@media (max-width: 320px) {
	.modal-consent .modal-content {
		max-width: 290px;
		padding: 8px;
	}
}


/* Existing cookie button styles with mobile improvements */
#cookie-modal-body {

.btn.primary {
	background: #2d7048 !important;
	border: 1px solid #2d7048;
	color: white;
	width: 100%;
	margin-bottom: 8px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn.secondary {
	border-color: #400049;
	color: #400049;
	background-color: #f5f5f5;
	width: 100%;
	margin-bottom: 8px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

/* Button container for side-by-side layout on larger screens */
.cookie-buttons-container {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

@media (max-width: 600px) {
	.cookie-buttons-container {
		flex-direction: column;
		gap: 8px;
	}
	
	.cookie-buttons-container .btn {
		width: 100%;
	}
}

}

/* Existing consent settings styles */
.consent-settings {
	margin-top: 20px;
	padding: 15px;
	border: 1px solid #ddd;
	background: #fafbfc;
	border-radius: 6px;
}

@media (max-width: 480px) {
	.consent-settings {
		padding: 12px;
		margin-top: 16px;
	}
}

.consent-toggle-section {
	margin-bottom: 10px;
}

.toggle-btn {
	background: #e6e6e6;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
}

.toggle-desc {
	margin: 8px 0 0 16px;
	padding: 8px;
	background: #f5f5f5;
	border-radius: 4px;
}

@media (max-width: 480px) {
	.toggle-desc {
		margin: 8px 0 0 8px;
		padding: 6px;
		font-size: 14px;
	}
}

.chevron-toggle {
	cursor: pointer;
	display: inline-block;
	vertical-align: middle;
	margin-right: 8px;
}

.chevron-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	padding: 8px 0;
	cursor: pointer;
}

.chevron-float-right {
	margin-left: auto;
	display: flex;
	align-items: center;
}

.chevron-icon {
	transition: transform 0.2s;
	/* By default, points up */
}

.chevron-header.open .chevron-icon {
	transform: rotate(180deg); /* Points down when open */
}

.chevron-toggle.open .chevron-icon {
	transform: rotate(180deg);
}

.modal-title {
	font-weight: 600;
	color: #333;
	margin: 0 8px;
	flex-grow: 1;
}

@media (max-width: 480px) {
	.modal-title {
		font-size: 14px;
	}
}

/* Toggle Switch CSS with mobile improvements */
.switch {
	position: relative;
	display: inline-block;
	width: 38px;
	height: 22px;
}

	.switch input {
		display: none;
	}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 22px;
}

	.slider:before {
		position: absolute;
		content: "";
		height: 16px;
		width: 16px;
		left: 3px;
		bottom: 3px;
		background-color: white;
		transition: .4s;
		border-radius: 50%;
	}

input:checked + .slider {
	background-color: #2d7048;
}

input:checked + .slider:before {
		transform: translateX(16px);
}

/* Close button for modal */
.modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

@media (max-width: 480px) {
	.modal-close {
		top: 8px;
		right: 8px;
		width: 28px;
		height: 28px;
		font-size: 20px;
	}
}

/* Ensure text is readable and responsive */
.modal-consent * {
	box-sizing: border-box;
}

.modal-consent p,
.modal-consent div {
	word-wrap: break-word;
	overflow-wrap: break-word;
}