/**
 * Keycloak Login Widget Styles
 */

/* Button sizing */
.dresium-keycloak-login-btn {
	display: inline-block;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	user-select: none;
	border: 1px solid transparent;
	cursor: pointer;
	box-sizing: border-box;
}

/* Size variants */
.dresium-keycloak-login-btn.dresium-btn-xs {
	padding: 6px 12px;
	font-size: 12px;
}

.dresium-keycloak-login-btn.dresium-btn-sm {
	padding: 8px 16px;
	font-size: 13px;
}

.dresium-keycloak-login-btn.dresium-btn-md {
	padding: 12px 24px;
	font-size: 14px;
}

.dresium-keycloak-login-btn.dresium-btn-lg {
	padding: 14px 32px;
	font-size: 16px;
}

.dresium-keycloak-login-btn.dresium-btn-xl {
	padding: 16px 40px;
	font-size: 18px;
}

/* Focus state */
.dresium-keycloak-login-btn:focus {
	outline: 2px solid rgba(25, 118, 210, 0.5);
	outline-offset: 2px;
}

/* Active state */
.dresium-keycloak-login-btn:active {
	transform: scale(0.98);
}

/* Disabled state */
.dresium-keycloak-login-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Modal styles */
.dresium-keycloak-modal {
	animation: dresium-modal-fade-in 0.3s ease-out;
}

@keyframes dresium-modal-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.dresium-keycloak-modal-content {
	animation: dresium-modal-slide-in 0.3s ease-out;
}

@keyframes dresium-modal-slide-in {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Close button */
.dresium-keycloak-modal-close {
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #999;
}

.dresium-keycloak-modal-close:hover {
	color: #000;
}

/* Responsive styles */
@media (max-width: 768px) {
	.dresium-keycloak-modal-content {
		width: 90vw !important;
		height: 80vh !important;
		max-width: 500px;
	}
}

@media (max-width: 480px) {
	.dresium-keycloak-modal-content {
		width: 95vw !important;
		height: 90vh !important;
	}

	.dresium-keycloak-login-btn.dresium-btn-lg,
	.dresium-keycloak-login-btn.dresium-btn-xl {
		width: 100%;
	}
}
